# Brackets Use Of Code MIrror & Dreamwever

**URL:** https://discuss.codemirror.net/t/brackets-use-of-code-mirror-dreamwever/984
**Category:** Uncategorized
**Created:** [November 10, 2016, 3:54am UTC](https://discuss.codemirror.net/t/brackets-use-of-code-mirror-dreamwever/984 "2016-11-10T03:54:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MCFC\_4Heatons](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/mcfc_4heatons/32/612_2.png) [@MCFC\_4Heatons](https://discuss.codemirror.net/u/MCFC_4Heatons)
#### Post date: [November 10, 2016, 3:54am UTC](https://discuss.codemirror.net/t/brackets-use-of-code-mirror-dreamwever/984/1 "2016-11-10T03:54:33Z")

</div>

I don’t know if anyone can help me here on this forum. In Brackets when creating a theme there is something called mode-aware styes, language-aware might be more accurate description, you can do like this with addModeClass flag set:

//CSS Specific  
.cm-m-css .cm-tag {  
color: #6c9ef8;  
}  
//PHP Specific  
.cm-m-clike .cm-tag {  
color: #6c9ef8;  
}

I’m trying to use ‘mode-aware’ styles in a Brackets theme (integrated into Dreamweaver CC 2017) But the above doesn’t work, do I need some additional selectors in there because of the enbedding or is it not possible?

Thanks …

---

<div class="post-metadata">

### Author: ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)
#### Post date: [November 10, 2016, 8:46am UTC](https://discuss.codemirror.net/t/brackets-use-of-code-mirror-dreamwever/984/2 "2016-11-10T08:46:23Z")

</div>

You should delete the spaces between the class names. I.e. `.foo.bar` means an element with classes foo and bar, whereas `.foo .bar` means an element with class bar that has an ancestor with class foo.

---

<div class="post-metadata">

### Author: ![MCFC\_4Heatons](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/mcfc_4heatons/32/612_2.png) [@MCFC\_4Heatons](https://discuss.codemirror.net/u/MCFC_4Heatons)
#### Post date: [November 10, 2016, 10:34am UTC](https://discuss.codemirror.net/t/brackets-use-of-code-mirror-dreamwever/984/3 "2016-11-10T10:34:18Z")

</div>

Thanks,

yes it works in Brackets like the examples below, but for some reason the code-aware styles don’t work in Dreamweaver 2017 (Brackets is the embedded code editor in Dreamweaver now).

.cm-operator.cm-m-clike {color: #FFBF00}  
.cm-comment.cm-m-clike{color: #FFDD77;}  
.cm-string.cm-m-clike{color: #FFFF00;}
