note 44458 deleted from language.types.string by cmb
| From: | cmb@php.net | Date: | Sun, 04 Aug 2019 09:11:57 +0000 |
| Subject: | note 44458 deleted from language.types.string by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211799@lists.php.net to get a copy of this message | ||
Note Submitter: Jonathan Lozinski
----
A note on the heredoc stuff.
If you're editing with VI/VIM and possible other syntax highlighting editors, then using
certain words is the way forward. if you use <<<HTML for example, then the text will be
hightlighted for HTML!!
I just found this out and used sed to alter all EOF to HTML.
JAVASCRIPT also works, and possibly others. The only thing about <<<JAVASCRIPT is that you
can't add the <script> tags.., so use HTML instead, which will correctly highlight all
JavaScript too..
You can also use EOHTML, EOSQL, and EOJAVASCRIPT.