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 (

Condividi:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • email
  • Google Bookmarks
  • LinkedIn
  • PDF
  • Reddit
Nessun commento ancora

Lascia un commento

XHTML: Puoi usare questi tag: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word