Other language examples

Topics: User Forum
Nov 6, 2007 at 8:45 PM
I have a .Net project which also works as a COM server. I have the need to show examples with VBA/VB6 syntax.

The standard supported languages are VB.Net and VBScript. For colorizing, lang="VB" works fine (VBScript lacks types) but the title says VB.Net (or VBScript) in the help file. Since I also got some real VB.Net examples it gets a bit confusing.

Is it possible to change the code "title" to VBA in the help file?
Coordinator
Nov 6, 2007 at 10:42 PM
Edited Nov 6, 2007 at 10:43 PM
Just supply a title attribute with the text that you want:

<code lang="vb" title="VB 6/VBA">code goes here</code>

If it lacks a title attribute, it defaults to the language. VB gets mapped to VB.NET. If you want no title, use title=" " (empty space).

Eric
Nov 7, 2007 at 2:08 PM
That worked fine, thanks.

I actually read the help item for the title attribute before asking but didn't connect it with the language name. When reading it again I don't understand how I could miss it (feeling stupid).