Forum Moderators: coopster

Message Too Old, No Replies

Heretodoc

no problems but need understanding

         

henry0

5:46 pm on Mar 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I found something strange; it does not impact on functionality
But worries me!
Example
<?
……. php script…

print<<<AAA

html form

AAA;

// in between the above and below HERETODOC
…. Php script….
Everything works but function, echo etc… do not look bold and activated
However they all do the job
Could someone explain what’s happening?
Thanks

More HERETO….
print<<<BBB

html

BBB;

?>

phparion

6:53 pm on Mar 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



your question is not very clear...

anyway, you can first assign heredoc to two variables and then print those variables this might make any difference...

cameraman

6:57 pm on Mar 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The way you've laid it out is all legit - my first thought is that your editor is getting confused.
I generally use it as phparion suggested - assign contents to variables and echo or modify/echo as necessary.

henry0

7:12 pm on Mar 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



phparion, that's a good idea

cameraman got it: OK, my editor got confused, now that makes sense!
simple answer but I did not even considered it
thanks

henry0

8:12 pm on Mar 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



for those using my "for years friend" UE editor
here is the work around

add the "DisableMLS" to the PHP language definition line in the wordfile, it will only highlight the first line as a string. The following lines should highlight correctly.

You can find your wordfile in the Advanced : Configuration : Editor Display : Syntax Highlighting.

[edited by: jatar_k at 12:01 am (utc) on Mar. 31, 2007]