enscript to render its output.
It supports the following languages :
%begin language% and %end% must be left alone on one single line.
#include <iostream>
int main()
{
std::cout << "Hello, world." << std::endl;
} |
10 #!/bin/sh 11 languages=`enscript --help-highlight | grep 'Name:' | cut -d ' ' -f 2` 12 for l in $languages; do 13 cat << EOF 14 * $l 15 EOF 16 done |
%<plugin>_<setting>%, i.e. %DEFAULTPLUGIN_SHORTDESCRIPTION%
data/debug.txt)
SyntaxHighlighting.zip package in your TWiki installation directory.
enscript version supports the languages you add.)
%begin numbered sh% # youpi %end%gives
1 # youpi
2 |
enscript strangely adds an extra line (for closing its emphasizing markers) between the matched <pre> </pre> to its html output.
Working around such a weird behavior is ... not planned.
UnmatchedWikiword :) MatchedWikiWord? :( |
| Plugin Author: | NicolasTisserand?, NicolasBurrus?, Perceval Anichini |
| Plugin Version: | 12 Jul 2002 |
| Change History: | 12 Jul 2002: Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | GNU enscript 1.6.3 |
| Perl Version: | 5.0 |
| Plugin Home: | http://www.lrde.epita.fr/cgi-bin/twiki/view/TWiki/SyntaxHighlightingPlugin |
| Feedback: | NicolasTisserand? |