Syntax coloring when <<< used |
|
oh, and it's not only the quotes itself, but the ?> inside there i realised.. but still same thing.
|
||||||||||||
|
Site Admin
|
it's <<< operator that is really hard to support in state-less highlighter.
you may retype your code as follows:
BTW, do you know any php-oriented editor that supports <<< ? |
||||||||||||||
|
|
Hi, well.
One of the main reasons i use <<< operator is to -not-have-to- escape thoose chars. But I understand the editor problem. Cant think of any editor that does it, but again. Haven't used so many. But the php (.phps) extension highlights it correct. If it's any help. Thanks for a great editor! |
||||||||||||
|
Site Admin
|
I know. PHP engine highlights correct, but it can't re-run highlighting from a given line and therefore it can't operate as an embedded highliter for an editor.
|
||||||||||||
|
|
Would it not at least be possible to make it a dead zone between a <<<STARTTAG
-- dead zone, just greyed out -- --- until--- STARTTAG; So everything below it could still be highlighted. Or something like that. |
||||||||||||
|
|
Hello, found out that VIM handles this <<< syntax coloring thing.
Using the syntax coloring map : , it also matches the START/END pairs, like $var <<< UNTILEND Stuff, stuff... <?php ?> ... no problem, all just text...... UNTILEND; then both UNTILEND is highlighted also, and everything below it, so it doesnt break the highlight. |
||||||||||||
|
|
A workaround that I use is:
This will highlight the HTML code as one big comment. |
||||||||||||||
|
|
I remember that macromedia homesite, whch i used to use (version 5.5 i believe) highlighted heredoc syntax perfectly: as if it were a string. come to think of it, I'm pretty sure it had a specific highlight-color option for heredoc strings that was separate from the color for regular strings.
that would be a nice feature in phpEd. |
||||||||||||
|
Syntax coloring when <<< used |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by