Tiddlywiki Syntax Highlighter
Ohhh! Awww!

The tiddlywiki implementation of syntaxhighlighter is crucial part of my note taking experience. I do a lot of note taking pertaining to code, and this makes it nice and pretty. I had some trouble finding the correct link to the plugin. The link on tiddlywiki.org/wiki/Syntax_Highlighting was broken, and since it was in japanese, I had difficulty searching the site for the section I needed. Anywho I stumbled across the correct link and fixed it in the tiddlywiki post on syntax highlighting. Well then why am I making this post? Well first off to give a little better install instruction, and a link to the plugin for easy of use ++ link back to original site.
How to install
—————-
Simple Way:
Navigate to your TiddlyWiki & click the backstage link at the upper right, followed by the import button. Paste the URL of my Notes into the URL box: “http://dl.getdropbox.com/u/52078/Notes/Notes.html” followed by the open button.
You will be presented with a long list of tiddlers. You can proceed to scroll down to the bottom and check ‘StyleSheet’, ‘StyleSheetSyntaxHighlighter’ and ‘SyntaxHighlighterPlugin’ followed by the import button.
That should be it, enjoy.
Manual Way:
Download ‘syntaxhighlighterplugin.zip’ from:
http://www.coolcode.cn/?action=show&id=310 (look for the link near the top of the page)
or my mirror:
http://dl.getdropbox.com/u/52078/syntaxhighlighterplugin.zip
and extract…
Click the New Tiddler link to the left, and Name the tiddler ‘StyleSheetSyntaxHighlighter’ Navigate to your unzipped archive and cut and paste the contents of ‘SyntaxHighlighter.css’ into your new tiddler.
Navigate to the Shadow tiddler ‘StyleSheet’ and add [[StyleSheetSyntaxHighlighter]]
Add another ‘New Tiddler’ named ‘SyntaxHighlighterPlugin’ and paste the contents of ‘shPlugin.js’ into this tiddler, then tag the tiddler with ‘systemConfig’
Finish everything up by copying ‘clipboard.swf’ to the directory of your TiddlyWiki…
Enjoy



Hi
How do you use this plugin? I have installed it but how to i implement the formatting? I have currently putting my code in {{{monospaced}}} format.
Do i need to use specific tages around my text in a tiddler?
Great plugin!!! I’ve just started to learn PHP, and this is exactly what I need. Thanks man!
Hello how do I go about upgrading the syntaxhighlighter to 2.0?
Overall this is working well.
I cannot get the clipboard function to work though. I’m using FireFox 3.6.13
The clipboard.swf file has been copied to the same folder.
Is it working in your implimentation?
The clipboard is not working. Do you have any idea? I’ve placed clipboard.swf in a same folder with my TiddlyWiki file. Is it possible dump clipboard.swf in base64 encoded format in plugin file (like other image file, such as attach plugin)
Thank you sir! This was very helpful!
I can’t find any shadow tiddler called StyleSheet. What should I do?
Using
alive project webpage
http://coolcode.org/?action=show&id=310
Just open SyntaxHighlighterPlugin tiddler and read it for instruction.
The most up-to-date plugin for SyntaxHighlighter is here:
http://syntaxhighlighter.tiddlyspace.com/
It’s developed on github:
https://github.com/pmario/SyntaxHighlighterPlugin