[ phpeclipse-Bugs-1493165 ] phpeclise highlighting fails when using special echo "<<<"
"SourceForge.net" <[email protected]> Fri, 19 Jan 2007 04:07:45 -0800
| Newsgroups | gmane.comp.ide.eclipse.phpeclipse.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1493165, was opened at 2006-05-22 22:10 Message generated for change (Comment added) made by yablacky You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1493165&group_id=57621 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: PHP Parser Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Hertzel (emudojo) Assigned to: Nobody/Anonymous (nobody) Summary: phpeclise highlighting fails when using special echo "<<<" Initial Comment: When you use the echo form echo <<< MY_WAT line 1 line 2 line 3 MY_WAT; all the rest of the code under this will not be parsed at all!! ---------------------------------------------------------------------- Comment By: L.S. (yablacky) Date: 2007-01-19 13:07 Message: Logged In: YES user_id=1696234 Originator: NO removing just the spaces behind <<< is a really great tip, thanks. The goal, of course, is not so much to show the here doc itself highlighted (althougth this would be appreciated). The goal is to continue correct hightligthing of PHP code that follows the here document. echo <<< AA 1 2 AA; // the code from here up to end of file is no highlighted anymore... ---------------------------------------------------------------------- Comment By: Benjamin Hill (salamanders) Date: 2006-11-01 18:39 Message: Logged In: YES user_id=370500 confirming this on 1.1.9.CVS-20060424 Interesting that single quotes change the highlighting from black to blue - so it is still scanning the section, just confused that it is in a big text block. ---------------------------------------------------------------------- Comment By: Luis Bernardo (lmpmbernardo) Date: 2006-07-30 04:47 Message: Logged In: YES user_id=137011 the heredoc syntax is equivalent to the double-quoted string; so having, for instance, HTML highlighting would not be consistent with the highlighting one gets with having HTML tags inside double quoted strings. I think the most we can have here is the option of chosing the color inside the heredoc instead of using the default color. ---------------------------------------------------------------------- Comment By: Edward Rudd (urkle) Date: 2006-06-09 01:23 Message: Logged In: YES user_id=8488 If you remove the space(s) after the <<< and before the MY_WAT then it woks correctly. (this is with PHP eclipse 1.1.8) It however does no highligting of the actual content. I was hoping for syntax highlighing of my HTML or SQL that is between my <<<EOHTML EOHTML; <<<EOSQL EOSQL; ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1493165&group_id=57621 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV