dktools - Dirk Krauses tools Wiki
Drawing, graphics conversion, software development, administration.
Brought to you by:
kraused
| ← Previous | ↑ Home | → Next |
The program converts text from the specified files or standard input to HTML. Alternatively you can use the -e (echo) option to convert text specified on the command line.
To convert a text file x.txt into a full HTML file:
dk-t2h -f -t "Page title" < x.txt > x.html
| Option | Purpose |
|---|---|
| -f | Produce full HTML file. A complete HTML page <html><body>…</body></html> is produced. Some <link rel=…> are prepared as comments. When activating these links you should replace some placeholders by useful values manually. |
| -t "Page title" | Page title for the HTML file. |
To convert a text file x.txt into a HTML segment:
dk-t2h < x.txt > x.html
To convert source code file x.c into a HTML segment:
dk-t2h -l < x.c > x.html
| Option | Purpose |
|---|---|
| -l | Mark input as source code. Each code line is placed in a <code title="001">…</code> construct. When the user moves the mouse over a line, the line number is shown as tooltip. The entire output should be placed in a <pre>…</pre> environment. |
To convert text specified as command line arguments:
dk-t2h -e Testing german umlauts ÄÖÜäöüß
| Option | Purpose |
|---|---|
| -e | Use input text from command line arguments instead of standard input. |
See the [dk-t2h manual] for the full documentation of the program.
| ← Previous | ↑ Home | → Next |