]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/contrib/sourcehighlight.mdwn
f5628052d85e05fe351c95d5e8b3a28afc7f97ca
[ikiwiki.git] / doc / plugins / contrib / sourcehighlight.mdwn
1 I noticed several places in the wiki talking about similar ideas, so I decided to put a page here to point to what I am working on.
2
3 I have copied otl.pm and am wrapping source-highlight (why this instead of vim highlight, I dunno, I must be a real emacs guy).  You can find more or less the latest 
4 version on 
5 [my wiki](http://www.cs.unb.ca/~bremner/wiki/software/sourcehighlight.pm)
6
7 you must specify a highlight_lang=>"foo,bar" in your setup file.
8 where foo and bar are the (source-supported) languages you want to
9 highlight
10 # Issues
11
12 - I would like to have a link to the raw source; I'm not quite sure how to manage this at them moment.  
13
14 - the common case of foo.c and foo.h breaks
15 because they both generate page working/dir/foo. 
16 It looks to me like ikiwiki is hardcoded to strip the extension in `pagename()` (IkiWiki.pm).