1ANSI2HTML(1) ansi2html Manual ANSI2HTML(1)
2
3
4
6 ansi2html - Convert text with ANSI color codes to HTML
7
9 ansi2html [OPTIONS] [--inline] [--partial]
10
12 Tool to convert text with ANSI color codes to HTML.
13
15 -p, --partial
16 Process lines as them come in. No headers are produced.
17
18 -i, --inline
19 Inline style without headers or template.
20
21 -H, --headers
22 Just produce the "<style>" tag.
23
24 -f SIZE, --font-size=SIZE
25 Set the global font size in the output.
26
27 -l, --light-background
28 Set output to "light background" mode.
29
30 -a, --linkify
31 Transform URLs into "<a>" links.
32
33 -u, --unescape
34 Do not escape XML tags found in the input.
35
36 -m, --markup-lines
37 Surround lines with "<span id='line-n'>..</span>".
38
39 --input-encoding=ENCODING
40 Specify input encoding.
41
42 --output-encoding=ENCODING
43 Specify output encoding.
44
45 -h, --help
46 Show this help message and exit.
47
48 --version
49 Show program’s version number and exit.
50
52 $ ls --color=always | ansi2html > directories.html
53
54 $ sudo tail /var/log/messages | ccze -A | ansi2html > logs.html
55
56 $ task burndown | ansi2html > burndown.html
57
59 • GitHub: https://github.com/ralphbean/ansi2html
60
61 • PyPI: https://pypi.python.org/pypi/ansi2html
62
64 • Ralph Bean <rbean@redhat.com>
65
66 • Sebastian Pipping <sebastian@pipping.org>
67
68
69
70ansi2html 01/21/2022 ANSI2HTML(1)