Not logged in. · Lost password · Register
Forum: Announcements RSS
code formatting (Important)
Avatar
Alex #1
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Subject: code formatting
To format your source code and Xml debug snippets use the following syntax.

c#
[code=csharp]
using System;
using MatriX.Xmpp;
using MatriX.Xmpp.Client;

XmppClient client = new XmppClient();
[/code]
  1. using System;
  2. using MatriX.Xmpp;
  3. using MatriX.Xmpp.Client;
  4.  
  5. XmppClient client = new XmppClient();
vbnet
[code=vbnet]
Imports System
Imports MatriX.Xmpp
Imports MatriX.Xmpp.Client

Dim client as New XmppClient()
[/code]
  1. Imports System
  2. Imports MatriX.Xmpp
  3. Imports MatriX.Xmpp.Client
  4.  
  5. Dim client as New XmppClient()
Xml
[code=xml]
<?xml version="1.0"?>
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" to="ag-software.de" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace" >
<stream:features>
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
<mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
<mechanism>ANONYMOUS</mechanism>
<mechanism>DIGEST-MD5</mechanism>
<mechanism>PLAIN</mechanism>
</mechanisms>
<register xmlns="http://jabber.org/features/iq-register"/>
</stream:features>
</stream:stream>
[/code]
  1. <?xml version="1.0"?>
  2. <stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" to="ag-software.de" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace" >
  3. <stream:features>
  4. <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
  5. <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  6. <mechanism>ANONYMOUS</mechanism>
  7. <mechanism>DIGEST-MD5</mechanism>
  8. <mechanism>PLAIN</mechanism>
  9. </mechanisms>
  10. <register xmlns="http://jabber.org/features/iq-register"/>
  11. </stream:features>
  12. </stream:stream>
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: