Community
Participate
Working Groups
Mylyn wikitext doesn't seem to support the "syntax highlight" MediaWiki extension: <source lang="java"> // some Java code </source> When I try this, wikitext spits out the <source> tags back in plain text. See: http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
Thanks for the feature request. We would welcome a contribution in this area.
The syntax coloring extension is written in PHP, with a PHP parser for each supported language. I'm not familiar with how Mylyn works; would supporting it mean rewriting it all in Java? Or is it somehow possible to execute or interpret PHP code from Mylyn?
I'm not sure on the best approach. It would be really neat if JDT's syntax highlighting could be used, however I'm not sure if it's intended to be used independently of the Java editor. It may be possible to call PHP from Java using JSR-223 (related: http://greensopinion.blogspot.com/2008/02/integrating-scripting-languages-into.html) To get started with WikiText, take a look at the "WikiText Developer Guide":http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.mylyn.wikitext.help.ui/help/devguide/WikiText%20Developer%20Guide.html
Closed as part of backlog clean-up. Please re-open if you'd like to see this revisited, perhaps with a contribution.