Menu

dk-t2h

Dirk Krause
← Previous ↑ Home → Next

dk-t2h — Convert text → HTML

Description

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.


Examples

Convert text to a full HTML file

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.

Convert text to a HTML segment

To convert a text file x.txt into a HTML segment:

dk-t2h < x.txt > x.html

Convert source code to HTML segment

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.

Specify text to convert on command line

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.

Manual

See the [dk-t2h manual] for the full documentation of the program.


← Previous ↑ Home → Next

Related

Wiki: Home
Wiki: dk-t2h manual

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.