[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]


Sujit K M forced the electrons to say:
> How does one use cpp for generating HTML.

This works for me:

$cat test.html

#ifdef _HTML
<BODY> Hello World </BODY>
#warn input not in HTML

When I run it as:

/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -x c -E -P -D_HTML test.html.

Adjust the path above to suit your need.


This signature is on vacation.