Home CodeCitation CodeCitation usage examples

Login Form



CodeCitation usage examples PDF Print E-mail

Examples:

In the following examples the codecitation tags are bold to make it possible to show you the example source :-) Do not use formatting in real life inside codecitation tag.

 

Example 1:

{codecitation class="brush: xml; gutter: false;" width="500px"}

<company>

  <name>ACME</name>

  <address>Address example</address>

</company>

{/codecitation}

 

Result:

<company>
  <name>ACME</name>
  <address>Address example</address>
</company>

 

Example 2:

{codecitation class="brush: vb; gutter: true;" width="500px"}

Public Sub Example(ByVal param as String)

   Console.Writeline(param)

End Sub

{/codecitation}

 

Result:

Public Sub Example(ByVal param as String)
   Console.Writeline(param)
End Sub

 

Example 3:

{codecitation class="brush: plain; gutter: true; highlight: [2,3]" width="500px"}

This is plain text example

That demonstrates the capability to highlight

particular lines

in the code.

{/codecitation}

 

Result:

This is plain text example
That demonstrates the capability to highlight
particular lines
in the code.

 

 

Copyright © 2010 SmartSoftwareBits.com. All Rights Reserved.
 

Polls

What is your favourite .NET language?
 

Who's Online

We have 2 guests online