# Writing HTML code directly from LaTeX?

At exporting a LaTeX file to HTML via tex4ht I have to write some HTML comments to the HTML source. So I would like to write the HTML code in the LaTeX file and let tex4ht export it directly. How can I achieve this? Are there some special LaTeX commands to do this?

-
I found a solution: \HCode{<!--comment-->} but now I can't export to pdf any more. Is there a way to mask out this tex4ht command for other latex interpreters? –  raulix Jun 9 '11 at 22:03
\def\HCode#1{} should disable the command. –  Caramdir Jun 9 '11 at 22:31
raulix: You should add that (with Caramdir's comment) as an answer so that others who look for this will see that it has an answer. –  Andrew Stacey Jun 10 '11 at 7:05
you can also use ifpdf if you're using pdf(la)tex or ifxetex if you're using XeTeX. –  ℝaphink Jun 10 '11 at 7:52

\def\HCode#1{}