Menu

PHP Heredocs syntax highlighting

Omnilord
2009-04-10
2012-11-13
  • Omnilord

    Omnilord - 2009-04-10

    Is there any way to highlight heredocs/nowdocs with a specific syntax that could be configurable, say "heredoc_highlight_lang="html" or something and have heredocs highlight as such?

    The following example should highlight the heredocs with html, not as a string:

    <?php
    $html = <<<END
    <html>
    <head>
    <title>Heredocs</title>
    </head>
    <body>
    This should highlight as html, not as a string.
    </body>
    </html>
    print $html;
    ?>

     
    • MaY

      MaY - 2009-04-14

      I think it's a scintilla issue..