Dreamweaver e Heredoc

Ho notato che DreamWeaver non digerisce bene il heredoc, a volte scazzando il parsing del file php (che non veniva modificato all’aggiornamento del template). Sul sito di php.net ho trovato seguente fix:

When editing with Dreamweaver, the syntax higlighting will be messed up if you use heredoc syntax. I found that the color syntaxing can be taken care by editing the php syntax file for DW.

Open Macromedia\Dreamweaver 8\Configuration\CodeColoring\PHP.xml and look for:


]]>

Directly after that add:


Now, DW will treat <<) and EOF; as it was the start (

About The Author

No Comments

Leave A Reply