in
Innovasys Logo

How to Tag examples as VB, C#, C++, etc in code

Last post 09-08-2010 2:12 PM by Richard Sloggett (Innovasys). 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-22-2010 9:02 AM

    How to Tag examples as VB, C#, C++, etc in code

    I know you can use the example and code tags but how does one note different languages (VB.Net, C#, C++)? 

    Thanks, Paul

  • 09-08-2010 2:12 PM In reply to

    Re: How to Tag examples as VB, C#, C++, etc in code

    Use the lang attribute - e.g.

    <example>

      Description of the example.

      <code lang="cs">string myString = "";</code>

      <code lang="vb">Dim MyString As String</code>

    </example>

    Richard Sloggett
    Innovasys
    http://www.innovasys.com
Page 1 of 1 (2 items)