# [tex4ht] How to insert HTML code at any location in the generated HTML file?

Fri Jul 12 08:03:57 CEST 2013

On Fri, Jul 12, 2013 at 4:23 AM, Karl Berry <karl at freefriends.org> wrote:

>     Runaway argument?
>
> I see CVR solved your problem with an environment.  That's good (maybe
> we should add that environment in general), but this error indicates the
> problem is simply having a blank line (\par) in the argument, and we
> should just make \HCode \long in order to allow it.  (I admit I didn't
> actually check if something weirder is going on.)
>

Not sure, if making \HCode a \long\def will solve the problem, because,
\HCode gets redefined at several places and within other definitions and
environments.

I think, \ScriptEnv is the best way to inject any kind of source code into
output.

Best
--