2
我想将突出显示的Mathematica源代码添加到Wikipedia页面,例如WR's Tweet-a-Program中的简要应用程序示例。Prettify.js可以用于突出显示维基百科上的代码吗?
目前,there's good support for Mathematica syntax highlight in prettify.js,这就是mathematica.stackexchange.com和Wolfram社区用来显示代码。
我知道维基百科支持Geshi,但是Geshi lacks Mathematica support,我想避免这样做,因为我还没有做过一段时间的正则表达式。
Can Prettify.js可以用来突出显示维基百科中发布的代码吗?
是否要将其安装在您自己的mediawiki上,还是要在wikipedia上启用它? – Bergi
@Bergi:我想在Wikipedia上启用它,我知道prettify.js可以用于个人Mediawikis http://www.richardnichols.net/2010/04/adding-google-prettify-syntax-highlight-to- mediawiki/ – andandandand
您可以从https://en.wikipedia.org/wiki/Wikipedia:User_scripts – leo