Code Coloring specific Tags

| 2 Comments

Many Dreamweaver versions ago, there was an Preference setting where you could specify a unique code color for certain tags in the Code View. You can still do that, but there is no longer a UI, which means you need to edit some XML.

Take a look at the Configuration/CodeColoring/CodeColoring.xml file. At the very end of the file, you'll see some <tagGroup> tags that specify a list of one or more tag names in the tags attribute. The name field is what gets displayed in the Code Coloring Preferences Styles list so you can use the "Editing Coloring Scheme" dialog for setting the color of the group of tags.

2 Comments

Randy,

Just curious about what you mean by that there isn't a UI to change tag colors?

Edit -> Preferences -> Code Color Coloring, Select HTML, then click Edit Coloring Scheme. That will allow you to edit the colors for a number of tags. Granted, some are grouped, such as table tags (table, tr, th, td) and form tags (form, input, textarea) so you do not have fine grained control like you will if you edit the CodeColoring.xml file, but there is at least some UI for editing.

Hi Danilo,

Thanks for letting me know where my details fall short! For those of you who don't know me, I'm an engineer, so my explanations tend to be very concise. Please let me know when you'd like more details.

The Tag Colors that are available for editing in the Code Coloring Preferences page are the ones defined by the tags present in the CodeColoring.xml file delivered with DW. So, yes, there is a UI for *changing* Tag Colors once they are defined, but there is not a UI for *defining* the tag groups themselves.

Leave a comment

About this Entry

This page contains a single entry by Randy Edmunds published on February 4, 2009 2:03 PM.

The CSS PI in CS4 was the previous entry in this blog.

Editing hidden elements in Design View is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 4.261