If you take a look at the Configuration/CodeColoring/Colors.xml file
that is delivered with DW MX (and beyond), you'll notice a single
<colorGroup> is defined with no attributes. The colors defined here
apply to all DW doctypes.
Then make a change to the Code Coloring preferences for the JavaScript
doctype and look at the file again. You'll see a second colorGroup tag
-- <colorGroup doctypes="JavaScript">. As you discovered, the DW
preferences editor sets the color for just the doctype(s) that you edit,
so your changes will only bee seen in .js files, not in JavaScript
embedded in .html files (for example).
Note: if you don't see the new <colorGroup>, then you're probably
looking in your application configuration folder -- you should be
looking in the user configuration folder.
You can apply the same colors across all doctypes by manually editing
the Colors.xml file. What you do is to move all of the tags from the
<colorGroup doctypes="JavaScript"> tag to the <colorGroup> and then
remove the empty <colorGroup doctypes="JavaScript"> tag.
For better performance, be sure to remove duplicates. If there are
duplicates, then (I think) the last definition wins.
You'll need to restart DW when you're done.
HTH,
Randy
Quote:
I edit code color scheme for JavaScript in DW MX
and it doesnt work. The changes are visible in
"editing color scheme" dialog box, I apply changes
and they are not visible in the file. |