views:

206

answers:

1

Does anyone know of any C# syntax highlighter plugins for Confluence? Using the default Java highlighter works, but it misses things like string in C# and String in Java, with the latter being highlighted and the former plain black text.

+2  A: 

There is a so called newcode macro that allows a lot of different languages. See https://studio.plugins.atlassian.com/wiki/display/NCODE/Confluence+New+Code+Macro for the macro itself.

To use the macro, just enclose your code into

{newcode:csharp}...{newcode}
mliebelt
Brilliant. Thanks for that.
Andrew Bienert