man: rewrite the documentation of the other tools
[nit.git] / share / man / nitlight.md
1 % NITLIGHT(1)
2
3 # NAME
4
5 nitlight - generates HTML of highlighted code from Nit source files.
6
7 # SYNOPSIS
8
9 nitlight [*options*] FILE...
10
11 # DESCRIPTION
12
13 Unlike generic lexical or syntactic highlighter, nitlight use semantic information on programs to improve the rendered result.
14
15 # OPTIONS
16
17 Common options of the Nit tools are understood.
18 Here, only the specific one are indicated.
19
20 `-f`, `--fragment`
21 :   Omit document header and footer.
22
23     By default, a complete autonomous HTML document is generated.
24     If `-f` is given, only the inside of the body part is generated such that it could be integrated
25     into a HTML document.
26
27 `--first-line`
28 :   Start the source file at this line (default: 1).
29
30     The generated HTML will only contains lines bellow the specified one.
31
32 `--last-line`
33 :   End the source file at this line (default: to the end)
34
35     The generated HTML will only contains lines ebove the specified one.
36
37 `-d`, `--dir`
38 :   Output html files in a specific directory (required if more than one module).
39
40     By default the generated HTML is outputted on the screen.
41     If this option is used, then HTML files are generated in the specified directory.
42
43     A basic `index.heml` and a `style.css` file are also generated in the directory.
44
45 `--full`
46 :   Process also imported modules.
47
48     By default, only the modules indicated on the command line are highlighted.
49
50     With the `--full` option, all imported modules (even those in standard) are also precessed.
51
52 # SEE ALSO
53
54 The Nit language documentation and the source code of its tools and libraries may be downloaded from <http://nitlanguage.org>