Thread Füllen der FAQ (11 answers)
Opened by havi at 2003-08-05 10:58

Strat
 2003-08-11 21:28
#41540 #41540
User since
2003-08-04
5246 Artikel
ModeratorIn
[Homepage] [default_avatar]
[quote=esskar,11.08.2003, 18:34]das PerlSyntaxHighlighting hier im Board geschrieben hatte...[/quote]
da habe ich vor ewigkeiten mal was auf dem Server installiert:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
chicago049:~ # which source-highlight
/usr/local/bin/source-highlight
chicago049:~ # source-highlight --help
GNU source-highlight 1.7

Purpose:
Highlight the syntax of a source file (e.g. Java)
into a specific format (e.g. HTML)

Usage: source-highlight [OPTIONS]... [FILES]...
-h --help Print help and exit
-V --version Print version and exit
-iSTRING --input=STRING input file. default std input
-oSTRING --output=STRING output file. default std output
-sSTRING --src-lang=STRING source language (e.g. java, cpp, prolog, perl
, php3, python, ruby, flex, changelog)
-fSTRING --out-format=STRING output format (e.g. html, xhtml)
-v --verbose verbose mode on
-d --doc create html with title and header
-cSTRING --css=STRING use a css for formatting. Implies --doc
-TSTRING --title=STRING give a title to the html. Implies --doc
-tINT --tab=INT specify tab length. default 8
-HSTRING --header=STRING file to insert as header
-FSTRING --footer=STRING file to insert as footer
--tags-file=STRING specify format options (def. tags.j2h)
-n --line-number number all output lines
--output-dir=STRING output directory

Maintained by Lorenzo Bettini <bettini@gnu.org>
Report bugs to <bug-source-highlight@gnu.org>
chicago049:~ #

z.b.
Code: (dl )
source-highlight -i $infile -f xhtml -s perl -n > outfile
perl -le "s::*erlco'unaty.'.dk':e,y;*kn:ai;penmic;;print"
http://www.fabiani.net/

View full thread Füllen der FAQ