DW CC 2017 - Color Coding & Mode-Aware Styles
Please can somebody post a working and tested example of use of mod-aware styles in Dreamweaver, I'm trying to get the color coding back to somehwre near useful how it used to be...
- Yes I know where the less and json files in the dreamweaver config folder and how to edit themes
- Yes I have edited a theme & made changes that work already
- Yes I have read Brackets info on GIthib, Wiki etc
- Don't post unless you know for sure your solution works, I have spent hours playing around with this in Dreamweaver and reading every bit of available information.
I have actually tested the following simple example in standalone Brackets and it works to color PHP code blocks:
in package.json add addModeClass to enable mode-aware styles like so:
"theme": {
"file": "theme.less",
"dark": true,
"addModeClass": true
Added to the theme css/less file:
.cm-m-clike {
color: #6c9ef8;
}
This works and colours just PHP blocks in Brackets which makes life much easier if you are doing a lot of PHP coding. You might also want to look at class .cm-meta as well for consistency.
When I test the same method in Dreamweaver it doesn't work presumably because its and embedded Brackets and requires a different approach.
Can someone please post a tested and confirmed working example of how to implement the mode-ware styles inside Dreamweaver please .....
