Code highlighting for code/verbatim blocks in WikiText (markdown)
We may want to add code highlighting for code fragments in
WikiText
.Some idea for implementation:
Submitted by Elmer van Chastelet on 17 May 2013 at 10:33
- Call markdown processor with a different
ToHTMLSerializer
by subclassing it and change the body of visit(VerbatimNode) as described in pegdown issue 21. The body should add the classprettyprint
to the<code>
-tag.- Add a function to WebDSL’s
built-in.app
that includes the appropriate js/css files for google-code-prettify and callsprettyPrint();
This function needs to be called to enable code highlighting on the current page. Or we turn it on by default…
Issue Log
On 17 May 2013 at 10:33 Elmer van Chastelet tagged feature
On 17 May 2013 at 10:33 Elmer van Chastelet removed tag improvement
On 13 June 2013 at 10:16 Elmer van Chastelet tagged markdown
Log in to post comments