note 69014 added to language.types.string

From: Date: Sat, 19 Aug 2006 20:18:19 +0000
Subject: note 69014 added to language.types.string
Groups: php.notes 
Request: Send a blank email to php-notes+get-116069@lists.php.net to get a copy of this message
In response to kamermans at teratechnologies dot net: That is a very sloppy method. I happen to be looking to do the same thing with DW today and came here to see the syntax rules on heredoc. 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: <blockStart doctypes="PHP_MySQL" scheme="customText"><![CDATA[<?=]]></blockStart> <blockEnd><![CDATA[?>]]></blockEnd> Directly after that add: <blockStart doctypes="PHP_MySQL" scheme="customText"><![CDATA[EOF;]]></blockStart> <blockEnd><![CDATA[<<<EOF]]></blockEnd> Now, DW will treat <<<EOF as if it was the end of the php syntax block (?>) and EOF; as it was the start (<?php or <?). I have yet to figure out how to make it work dynamically with any heredoc identifier. DW uses some regex in that file but it appears as if some are disabled. If anyone else happens to figure it out please share! :D ---- Server IP: 216.194.113.175 Probable Submitter: 24.16.41.16 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/language.types.string.php Edit -- https://master.php.net/note/edit/69014 Del: integrated -- https://master.php.net/note/delete/69014/integrated Del: useless -- https://master.php.net/note/delete/69014/useless Del: bad code -- https://master.php.net/note/delete/69014/bad+code Del: spam -- https://master.php.net/note/delete/69014/spam Del: non-english -- https://master.php.net/note/delete/69014/non-english Del: in docs -- https://master.php.net/note/delete/69014/in+docs Del: other reasons-- https://master.php.net/note/delete/69014 Reject -- https://master.php.net/note/reject/69014 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116069) next »