RE: [PHP] mixing HTML and PHP code
| From: | MR | Date: | Fri, 12 Jan 2001 19:56:24 +0000 |
| Subject: | RE: [PHP] mixing HTML and PHP code | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34291@lists.php.net to get a copy of this message | ||
Christian Reiniger ...
> One reason why I don't like the "echo" route: I lose the syntax
> highlighting for the HTML that way. String constants should be
> highlighted as, well, string constants normally, but when they contain
> HTML code that's just plain ugly.
Well, that's the point about using a better or worse editor... better editors detect when HTML
becomes PHP and viceversa - i mean,
some editors DO detect
HTML <? PHP ?> HTML
and
PHP echo " HTML "; PHP
AND highlight syntax according to that.
(the editor's programmers should look after that!)