Mixed language syntax highlighting?

I've used ConTEXT as my editor of choice for ages now, but the thing that has become more and more important for me is mixed language syntax highlighting.

The most obvious use is for HTML files where I need both HTML and JavaScript syntax highlighting (ConTEXT does either HTML or JavaScript, but not both at the same time).

A less obvious use (but one which I use a lot) is for instance for Perl where I often put HTML in a HEREDOC. Something like this:

# This is a perl script
my $html = <<EOH;

  <!DOCTYPE html>
  <html>
    <head>
      <title>Just another HW</title>
      <script>
        alert( "Hello World" );
      </script>
    </head>
    <body>
      Hello World!
    </body>
  </html>
EOH

print $html;

Is there an editor (perhaps Notepad++?) that can correctly do this?

728x90

0 Answers Mixed language syntax highlighting?