We may want to add code highlighting for code fragments in WikiText.

Some idea for implementation:

  • 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 class prettyprint 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 calls prettyPrint(); This function needs to be called to enable code highlighting on the current page. Or we turn it on by default…
Submitted by Elmer van Chastelet on 17 May 2013 at 10:33

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