Can Prettify.js be used to highlight code on Wikipedia?

141 views Asked by At

I want to add highlighted Mathematica source code to Wikipedia pages, samples of brief apps like those in WR's Tweet-a-Program.

Currently, there's good support for Mathematica syntax highlight in prettify.js, and this is what mathematica.stackexchange.com and the Wolfram Community use to display code.

I know that Wikipedia supports Geshi, however Geshi lacks Mathematica support, and I want to avoid messing with that, as I haven't done regex for a while.

Can Prettify.js be used to highlight code posted in Wikipedia?

1

There are 1 answers

0
Buddy Fortier On

You can also use it with an add-on like greasemonkey. (I don't have the rep to comment, have to put this as an answer).