Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341454 - Support Mediawiki "<syntaxhighlight>" extension
Summary: Support Mediawiki "<syntaxhighlight>" extension
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: David Green CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-03-31 05:16 EDT by Nicolas Bros CLA
Modified: 2013-10-29 13:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2011-03-31 05:16:40 EDT
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
Comment 1 David Green CLA 2011-04-04 14:16:52 EDT
Thanks for the feature request.  We would welcome a contribution in this area.
Comment 2 Nicolas Bros CLA 2011-04-05 03:36:38 EDT
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?
Comment 3 David Green CLA 2011-04-05 15:42:06 EDT
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
Comment 4 David Green CLA 2013-08-02 12:43:23 EDT
Closed as part of backlog clean-up.  Please re-open if you'd like to see this revisited, perhaps with a contribution.