Syntax Highlighting Renderer not present


I'm following the documentation for rendering code snippets and when I call wikiEngine.Render(myCodeText, GetRenderers()); nothing happens to the text. I noticed that in the list of renderers, there is nothing for Syntax Highlighting. Was this missed in the build or do I need to find it somewhere else?
Closed Feb 5, 2013 at 4:46 AM by matthaw
That's correct. Starting and ending code blocks indicators must be on their own line.


matthaw wrote Feb 4, 2013 at 11:55 PM

What renderer's do you have as apart of your GetRenderers() call? You're either missing the SourceCodeRenderer in this list, or you've explicitly removed the SourceCodeMacro from the global list of Macros.

draepetan wrote Feb 5, 2013 at 1:34 AM

I actually set the renderers argument to Renderers.All

But i withdraw this issue. I started a new project on a different computer and recreated this same test and now it works just fine. Can't imagine what the problem is. Thanks!

draepetan wrote Feb 5, 2013 at 1:46 AM

The problem appears to have been that there was carriage return missing before each {code:c#} tag:
{code:c#}public class blahblah{}{code:c#}
should have been
{code:c#}\r\npublic class blahblah{}\r\n{code:c#}