Tip - Dreamweaver - Can I change the color coding of TR and TD tags individually? - Randy Edmonds - Edit the Configuration/CodeColoring/CodeColoring.xml file (after making a backup copy, of course). Near the bottom of the file, you'll see this line: <tagGroup name="HTML Table Tags" id="CodeColor_HTMLTable" taglibrary="DWTagLibrary_html" tags="table,tbody,td,tfoot,th,thead,tr,vspec,colw,hspec" />
To split the <tr> and <td> tags out of this tag group and into a new one, you want to change the line above to be something like: <tagGroup name="HTML Table Tags" id="CodeColor_HTMLTable" taglibrary="DWTagLibrary_html" tags="table,tbody,tfoot,th,thead,vspec,colw,hspec" /> <tagGroup name="HTML Table Row, Cell Tags" id="CodeColor_HTMLTableCellRow" taglibrary="DWTagLibrary_html" tags="td,tr" />
Be sure to restart DW MX. Now, when you go to Edit > Preferences > Code Coloring, select "HTML" and click "Edit Coloring Scheme", you will now see a "HTML Table Row, Cell Tags" entry in the "Styles For:" list. You may want to shorten the name so it fits in the UI.
Documentation for the code coloring xml format can be found at:
http://www.macromedia.com/support/dreamweaver/extend/extensible_code_coloring/
10:28:27 AM
|
|