note 44458 modified in language.types.string by colder

From: Date: Tue, 17 Oct 2006 18:16:34 +0000
Subject: note 44458 modified in language.types.string by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-118643@lists.php.net to get a copy of this message
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. --was-- 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.. There might be one for Text/css too? http://php.net/manual/en/language.types.string.php

« previous php.notes (#118643) next »