How do I add emphasis to code?

Apr 4, 2008 at 8:51 AM
Hi,

I'm trying to add some emphasis to a bit of example code at the code documentation I'm currently working. How do I do it?

For instance I want that the comment below

/// <code lang="cs">
/// if (<b>variable</b>) doSomething();
/// </code>

to be rendered as

if (variable) doSomething();

Does anyone know how to do it?

Regards,

Paulo Santos
http://pjondevelopment.50webs.com
Coordinator
Apr 4, 2008 at 3:05 PM
When code is colorized you can't have both colorization and other formatting such as embedded HTML tags. If you want to turn off colorization and use your own emphasis, add a lang="none" attribute to the <code> tag.

Eric