You need to identify the names of alltt-like environments using the perl variable $alltt_rx. So in your .latex2html-inti, put something like $alltt_rx = 'dcode|doutput|dinput'; Hope this helps Graham