vb.net code examples

Feb 13, 2008 at 8:32 AM
Hi!
How can I write examples in documentation (code element) in vb.net language? Now, when I'm writing
///<code>this is a vb.net code</code>
it produces c# code block in resulting help document.
Feb 13, 2008 at 9:53 AM
Use the <code lang="vb">...</code> for the VB.NET codes
and <code lang="c#">...</code> for the C# codes.

Best regards,
Paul.
Feb 13, 2008 at 1:49 PM
Thank you. That's exactly what I need.
Editor
Feb 13, 2008 at 3:26 PM
If you only use VB.NET code, you can alter the code block component configuration so that it defaults to VB.NET rather than C#. In SHFB, edit the ComponentConfigurations project property, add the Code Block Component, and edit the configuration to set the default language.

Eric
Feb 13, 2008 at 3:49 PM
Edited Feb 13, 2008 at 3:49 PM
Note that the lang keyword is not a Sandcastle feature, it's a feature of a custom build component written by Eric Woodruff that's available as a separate download or with Sandcastle Help File Builder.

Edit: Oh, hi Eric :)