HighDots Forums  

code color scheme doesnt work

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss code color scheme doesnt work in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
MaliN
 
Posts: n/a

Default code color scheme doesnt work - 06-30-2004 , 06:35 AM






hi,

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.

what can be the problem.

cheers,
malin



Reply With Quote
  #2  
Old   
Randy Edmunds
 
Posts: n/a

Default Re: code color scheme doesnt work - 06-30-2004 , 10:35 AM






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.


Reply With Quote
  #3  
Old   
MaliN
 
Posts: n/a

Default Re: code color scheme doesnt work - 07-01-2004 , 03:58 AM



Quote:
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).

that solves the problem

thank you

malin




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.