This project has moved. For the latest updates, please go here.

code block showing vb code question

Topics: Developer Forum
Dec 16, 2013 at 1:33 PM

I am just new tro sandcastle and figuring out all the features.

I was wondering if I make a code block and fill in only the vb part is it possible to show only the vb tab in the chm file? Now it will show all 4 language tabs and the c# is selected by default which does not contain any code. I would prefer to show the vb tab which has code.
''' <code lang="VB">
    ''' Obj.Pause
    ''' 'Perform tasks
    ''' Obj.Continue
    ''' </code>
Dec 16, 2013 at 4:44 PM
Assuming you are using the VS 2010 presentation style, it's a limitation of the way the presentation style is implemented. You can change the order of the tabs by changing the presentation style branding files as noted in this thread:

You will most likely also need to change the default language selected (it was VB when the thread was written but has since been changed to C#). That change is described in this thread:

In both cases, I think the threads mention extracting data from the dev10.mshc file which is no longer necessary. You'll find the affected files in the branding folder in the presentation style folder (%ProgramFiles(x86)%\Sandcastle\Presentation\VS2010\branding).