Have a look at: syntaxhighlighter space [1]
The status is erxperimental, because, if you use expert mode (disabled
by default) a vanilla tw can't render the new code. So, there is no
fallback yet. If you use the default configuration everything should
be fine.
I did test the basics. But any feedback would be welcome.
At the moment the brushes: text, css, js, xml are included by
default.
The brushes are identified by the different braces
text .. {{{
css .. /*{{{*/
xml .. <!--{{{-->
js .. //{{{
to use it, include syntaxhighlighter space into your space.
Download [2]
==========
Expert mode has to be activated inside macro source code. Because it
makes the monospace block starter syntax, incompatible to vanilla tw.
{{{ brush: pascal \n
/*{{{ brush: pascal */
<!{{{ brush: pascal -->
//{{{ brush: pascal \n
see the code for more.
===========
I want to use any SyntaxHighlighter parameter [3]. And I wanted to
have a syntax, that can be also used inside a plugin or a css tiddler
[4], without breaking the possibility to execute it.
Any idea, to get the above rendered by a vanilla tw, would be very
welcome. Changing the core formatter would be a possibility, but I
think there will be a nogo :)
have fun!
Mario
[1]
http://syntaxhighlighter.tiddlyspace.com/#SyntaxHighlighterPlugin3Info
[2]
http://syntaxhighlighter.tiddlyspace.com/?download=TWHighlightSyntax.html
[3]
http://alexgorbatchev.com/SyntaxHighlighter/manual/configuration/
[4]
http://syntaxhighlighter.tiddlyspace.com/#ShThemeDefault.css