Support of PHP heredoc and nowdoc syntax in Color Schemes

I am a new user to Komodo and really like the program! The one thing that seems to be missing in the Color Schemes for PHP is support of the heredoc and nowdoc syntax. Example:

$str = <<<EOD
Example of string
spanning multiple lines
using heredoc syntax.
EOD;

I can see where different developers use these for different types of content. Our team uses these for HTML output, SQL statements, or simple text. I would be really nice if the color highlighting didn’t always show as just green. An idea for a solution might be to allow specifying the content type in the Komodo configuration dialog based on the identifier used.

In the dialog box, I would specify various heredoc/nowdoc identifiers to highlight the string using different color schemes. For instance, if I say the identifier <<<EOHTML is HTML, it would highlight as HTML, <<<EOSQL would highlight as SQL, etc. The following attributes could be added to the drop down box:

heredoc/nowdoc HTML
heredoc/nowdoc SQL
heredoc/nowdoc TEXT

The user would then configure what the identifier is for each of those attributes.

I am hopeful this makes sense. I think it would be a great feature to add.

Thanks in advance.

Well, I like this idea. Please file an enhancement request :smiley:

Thank you for your quick response. I’ve submitted an enhancement request.