vb.net code examples

Feb 13, 2008 at 9:32 AM
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 10:53 AM
Use the <code lang="vb">...</code> for the VB.NET codes
and <code lang="c#">...</code> for the C# codes.

Best regards,
Feb 13, 2008 at 2:49 PM
Thank you. That's exactly what I need.
Feb 13, 2008 at 4: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.

Feb 13, 2008 at 4:49 PM
Edited Feb 13, 2008 at 4: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 :)