Yes, the text is present, but it isn't highlighted. In other words, it
disappears when it is viewed as html (since it is a comment).
I have discovered since I wrote the bug report that if you do:
my $html_formatter = Syntax::Highlight::HTML->new(0);
$html_formatter->xml_mode(1);
The the comments DO show up as highlighted html.
I hope this is helpful.
Best wishes,
Henry Laxen
[maddingue@free.fr - Wed Dec 28 10:41:54 2005]:
Show quoted text> I can't reproduce the error you describe:
>
> $ cat rt-16765.pl
> #!/usr/bin/perl
> use strict;
> use Syntax::Highlight::HTML;
>
> my $highlighter = new Syntax::Highlight::HTML;
> print $highlighter->parse(<<'HTML');
> <script type="text/javascript">
> <!--
> javascript here
> //-->
> </script>
> HTML
>
> $ perl rt-16765.pl
> <pre>
> <span class="h-ab"><</span><span class="h-tag">script</span>
> <span
> class="h-attr">type</span>=<span class="h-
> attv">"text/javascript</span>"<span
> class="h-ab">></span>
> <!--
> javascript here
> //-->
> <span class="h-ab"></</span><span class="h-
> tag">script</span><span
> class="h-ab">></span>
> </pre>
>
> As you see the text between the <script> tags is still present.
> Maybe it comes from your version of HTML::Parser (although I doubt
> it).
> What version are you using?
>
> FWIW, I'm using:
> This is perl, v5.8.5 built for i386-linux-thread-multi
> HTML::Parser 3.48
> Syntax::Highlight::HTML 0.04
>
> --
> Sébastien Aperghis-Tramoni
>
> Close the world, txEn eht nepO.