code block showing vb code question

Topics: Developer Forum
Dec 16, 2013 at 2:33 PM
Hi,

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>
Coordinator
Dec 16, 2013 at 5: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: https://shfb.codeplex.com/discussions/354300

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: https://sandcastle.codeplex.com/discussions/359722

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).

Eric