in reply to (EMACS) please help checking a bug => highlighting after __DATA__

M-x version:
GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE
C-h v cperl-version
Its value is "5.23"

Hmm, I guess I am a little behind on my emacs version.

Paste of htmlized mode

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <!-- Created by htmlize-1.36 in css mode. --> <html> <head> <title>*foo</title> <style type="text/css"> <!-- body { color: #7cfc00; background-color: #000000; } .comment { /* font-lock-comment-face */ color: #ff7f24; } .comment-delimiter { /* font-lock-comment-delimiter-face */ color: #ff7f24; } .constant { /* font-lock-constant-face */ color: #7fffd4; } .cperl-nonoverridable { /* cperl-nonoverridable-face */ color: #ff83fa; } .keyword { /* font-lock-keyword-face */ color: #00ffff; } .string { /* font-lock-string-face */ color: #ffa07a; } a { color: inherit; background-color: inherit; font: inherit; text-decoration: inherit; } a:hover { text-decoration: underline; } --> </style> </head> <body> <pre> <span class="comment-delimiter">#</span><span class="comment">!/usr/bi +n/perl </span> <span class="comment">__DATA__</span> <span class="cperl-nonoverridable">s</span><span class="constant">/</s +pan><span class="string">huh</span><span class="constant">/</span><sp +an class="string">ttt</span><span class="constant">/</span><span clas +s="cperl-nonoverridable">g</span> <span class="keyword">for</span> (1..9) { <span class="cperl-nonoverr +idable">print</span> <span class="string">"huhu"</span>} </pre> </body> </html>

If you want a screenshot instead, let me know.

--MidLifeXis

  • Comment on Re: (EMACS) please help checking a bug => highlighting after __DATA__
  • Download Code

Replies are listed 'Best First'.
Re^2: (EMACS) please help checking a bug => highlighting after __DATA__
by LanX (Saint) on Oct 14, 2010 at 16:37 UTC
    Thanks, it shows your having the same problem.

    (And thx, I forgot that there's an export to html ... :)

    I'm not sure if it's a bug or a feature, some CPAN-moduls have most of their code in the data-section.

    Cheers Rolf