Jump to content

davidennis99

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

davidennis99's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. jonas11, You are correct in wanting Dreamweaver to to do more than it does out of the box.. In fact, the manuals for Dreamweaver rage on about how it is highly configurable... That's just all they tell you... Who cares why you want to do it.. The answer is YES, it can do color coding in any way you want.. Why just blindly stick to the defaults setup by others?? WHat a bland way to look at things - it usually just gives people a useless hostile attitude The problem is that ever since Macromedia bought Alair (originators of Cold Fusion), the documentation for Dreamweaver(now a Dreamweaver/ColdFusionStudio Hybrid), the documentation on configuration has gone down hill.. Here is a quick overview of the parts of the COdeColoring file and what you would change - and why.. In the CodeColoring.xml file under your user prefs/app data/Macromedia.../config...etc Look for: <scheme name="PHP Script" (around line 1250 or so..) This is where it is all defined.. Now look for lines like this: <blockStart doctypes="PHP_MySQL" scheme="customText"><![CDATA[<?\n]]></blockStart> There are about 5 of them.. In this example, the <?\n says that php starts with a tag like this <? [newline] You and even add more like <blockStart doctypes="PHP_MySQL" scheme="customText"><![CDATA[<this is fun and you wont find it under F1>]]></blockStart> with an ending tag like: <blockEnd ><![CDATA[</this is fun and you wont find it under F1>]]></blockEnd> Giving you: <this is fun and you wont find it under F1>PHP CODE ALL YOU WANT AND SEE IT COLOR CODED IN .HTML FILES</this is fun and you wont find it under F1> Each <BlockStart defines the opening tags for PHP blocks.. The Problem is that the doctype directive states that Dreamweaver is only allowed to color-code php blocks within php pages... doctypes="PHP_MySQL" hmmmm... Soo for each <blockStart, change the doctypes directive from doctypes="PHP_MySQL" to doctypes="PHP_MySQL,HTML" I just copied the entire list from the html scheme at the top of the colorCoding.xml file: doctypes="ASP.NET_VB,ASP.NET_CSharp,ASP-JS,ASP-VB,ColdFusion,CFC,HTML,JSP,EDML,PHP_MySQL,LibraryItem,WML" To change the colors: edit->preferences->Color COding->HTML->PHP NOT edit->preferences->Color COding->PHP (this will just change the colors in .php-ish named files, not html files.. Warning: If editing in Dreamweaver, dreamweaver may hiccup on this huge file.. you may need to save a copy as txt and edit then rename as xml I have posted my file at: http://www.clickalive.com/david/Macromedia/CodeColoring.xml Oh yeah.. I use: http://www.vim.org - even when I get stuck using a Windows machine..
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.