1SOURCE-HIGHLIGHT(1)              User Commands             SOURCE-HIGHLIGHT(1)
2
3
4

NAME

6       Source-highlight - convert source code to syntax highlighted document
7

SYNOPSIS

9       source-highlight [OPTIONS]... < INPUT_FILE > OUTPUT_FILE
10

DESCRIPTION

12       GNU GNU source-highlight 3.1.9
13
14       Highlight  the syntax of a source file (e.g. Java) into a specific for‐
15       mat (e.g.  HTML)
16
17              source-highlight  [OPTIONS]...  -i  INPUT_FILE  -o   OUTPUT_FILE
18              source-highlight [OPTIONS]... [FILES]...
19
20       -h, --help
21              Print help and exit
22
23       --detailed-help
24              Print help, including all details and hidden options, and exit
25
26       -V, --version
27              Print version and exit
28
29       -i, --input=FILENAME
30              Input file (default=stdin)
31
32       -o, --output=FILENAME
33              Output  file  (default=stdout, when the third invocation form is
34              used). If 'STDOUT' is specified, the output is directed to stan‐
35              dard output
36
37       You can simply specify some files at the command line and also use reg‐
38       ular expressions (for instance *.java).  In this case the name for  the
39       output  files  will  be formed using the name of the source file with a
40       .EXT appended, where EXT is the extension chosen according to the  out‐
41       put format specified (for instance .html).
42
43       -s, --src-lang=STRING
44              source  language (use --lang-list to get the complete list).  If
45              not specified, the source language will be guessed from the file
46              extension.
47
48       --lang-list
49              list  all the supported language and associated language defini‐
50              tion file
51
52       --outlang-list
53              list all the supported output language and  associated  language
54              definition file
55
56       -f, --out-format=STRING
57              output  format  (use  --outlang-list  to  get the complete list)
58              (default=`html')
59
60       -d, --doc
61              create an output file that can be used as a stand alone document
62              (e.g., not to be included in another one)
63
64       --no-doc
65              cancel the --doc option even if it is implied (e.g., when css is
66              given)
67
68       -c, --css=FILENAME
69              the external style sheet filename.  Implies --doc
70
71       -T, --title=STRING
72              give a title to the output document.  Implies --doc
73
74       -t, --tab=INT
75              specify tab length.  (default=`8')
76
77       -H, --header=FILENAME
78              file to insert as header
79
80       -F, --footer=FILENAME
81              file to insert as footer
82
83       --style-file=FILENAME
84              specify     the     file     containing      format      options
85              (default=`default.style')
86
87       --style-css-file=FILENAME  specify  the  file containing format options
88       (in
89              css syntax)
90
91       --style-defaults=FILENAME specify the file containing defaults for for‐
92       mat
93              options  (default=`style.defaults')
94
95       --outlang-def=FILENAME
96              output language definition file
97
98       --outlang-map=FILENAME
99              output language map file (default=`outlang.map')
100
101       --data-dir=PATH
102              directory  where language definition files and language maps are
103              searched for.  If not specified these files are searched for  in
104              the current directory and in the data dir installation directory
105
106       --output-dir=PATH
107              output directory
108
109       --lang-def=FILENAME
110              language definition file
111
112       --lang-map=FILENAME
113              language map file  (default=`lang.map')
114
115       --show-lang-elements=FILENAME
116              prints the language elements that are defined
117
118              in the language definition file
119
120       --infer-lang
121              force to infer source script language (overriding given language
122              specification)
123
124   Lines:
125       -n, --line-number[=PADDING]
126              number all output lines, using the specified  padding  character
127              (default=`0')
128
129       --line-number-ref[=PREFIX]
130              number all output lines and generate an anchor,
131
132       made of the specified prefix + the line
133              number  (default=`line')
134
135       Filtering output:
136
137              Mode: linerange
138
139              specifying line ranges
140
141       --line-range=STRING
142              generate only the lines in the specified range(s)
143
144       --range-separator=STRING
145              the optional separator to be printed among ranges (e.g., "...")
146
147       --range-context=INT
148              number of (context) lines generated even if not in range
149
150              Mode: regexrange
151
152              specifying regular expression delimited ranges
153
154       --regex-range=STRING
155              generate only the lines within the specified regular expressions
156
157   reference generation:
158       --gen-references=STRING
159              generate   references   (possible  values="inline",  "postline",
160              "postdoc" default=`inline')
161
162       --ctags-file=FILENAME
163              specify the file generated by ctags that will be used to  gener‐
164              ate references (default=`tags')
165
166       --ctags=CMD
167              how  to run the ctags command.  If this option is not specified,
168              ctags will be executed with the default value.  If it is  speci‐
169              fied  with  an  empty  string, ctags will not be executed at all
170              (default=`ctags --excmd=n --tag-relative=yes')
171
172   testing:
173       -v, --verbose
174              verbose mode on
175
176       -q, --quiet
177              print no progress information
178
179       --binary-output
180              write output files in binary mode
181
182       --statistics
183              print some statistics (i.e., elapsed time)
184
185       --gen-version
186              put source-highlight version in the generated file  (default=on)
187
188       --check-lang=FILENAME
189              only check the correctness of a language definition file
190
191       --check-outlang=FILENAME
192              only check the correctness of an output language definition file
193
194       --failsafe
195              if no language definition is found for the input, it  is  simply
196              copied to the output
197
198       -g, --debug-langdef[=TYPE]
199              debug  a  language  definition.  In dump mode just dumps all the
200              steps; in interactive, at each step, waits for some input (press
201              ENTER   to   step)    (possible   values="interactive",   "dump"
202              default=`dump')
203
204       --show-regex=FILENAME
205              show the regular expression automaton corresponding  to  a  lan‐
206              guage definition file
207
208       Maintained by Lorenzo Bettini <http://www.lorenzobettini.it>
209

REPORTING BUGS

211       Report bugs to <bug-source-highlight at gnu.org>
212
214       Copyright  ©  1999-2008  Lorenzo Bettini <http://www.lorenzobettini.it>
215       This program comes with ABSOLUTELY NO WARRANTY.
216       This is free software; you may redistribute copies of the program under
217       the  terms  of  the  GNU  General Public License.  For more information
218       about these matters, see the file named COPYING.
219

SEE ALSO

221       The full documentation for Source-highlight is maintained as a  Texinfo
222       manual.   If  the  info  and  Source-highlight  programs  are  properly
223       installed at your site, the command
224
225              info Source-highlight
226
227       should give you access to the complete manual.
228
229
230
231Source-highlight 3.1.9 (library: 4:1J:u0n)e 2019               SOURCE-HIGHLIGHT(1)
Impressum