« Coppermine Theme Contest | Home | Rapidshare’s ‘Remote Uploads’ fixed… »
PHP CodeColoring in Dreamweaver
By SaWey | December 14, 2008
I have used dreamweaver since a long time to write my php scripts and have liked it ever since. There was only one thing that bothered me, and that is when javascript was written inside my scripts. It messes up the code coloring as Dreamweaver thinks it is an ending tag for php code. So all code below a ‘</script>’ tag was colored as plain text and thus not very readable.
I found a solution to this a long time ago, but I had to reinstall Dreamweaver not so long ago and was forgotten where I had to make the changes. Today I remembered and decided to write this post so I won’t forget it anymore.
It’s very easy, open the file
C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration\CodeColoring\PHP.xml
and remove the lines:
<blockStart doctypes="PHP_MySQL" scheme="outerTag"><![CDATA[<script\s+language\s*=\s*"php">]]></blockStart>
<blockEnd><![CDATA[</script>]]></blockEnd>
If Dreamweaver was open during the edit, you have to restart it in order for the changes to work.
For quick edits, I mostly use Notepad++, but since I have a Dreamweaver licence I also like to use it
Topics: Small talk, Web developments | No Comments »
Comments