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

Re:



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
<HTML>
<BODY> Hello World </BODY>
</HTML>
#else
#warn input not in HTML
#endif

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.

Binand

-- 
This signature is on vacation.