Skip to main content
Legend
November 8, 2016
Answered

DW CC 2017 - Color Coding & Mode-Aware Styles

  • November 8, 2016
  • 2 replies
  • 1970 views

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...

  1. Yes I know where the less and json files in the dreamweaver config folder and how to edit themes
  2. Yes I have edited a theme & made changes that work already
  3. Yes I have read Brackets info on GIthib, Wiki etc
  4. 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 .....

This topic has been closed for replies.
Correct answer Preran

Please post a vote here so we can hopefully get full flexibility back for code colouring:

Restore Full Code Colouring Flexibility – Adobe Dreamweaver CC: Feature Ideas

The code colouring apart from being removed from the options because it's a half finished Brackets integration lacks serious flexibility, no language specific option even if you are prepared to edit the LESS theme file directly has been included.

I had an official response from Adobe that language-specific code colouring which is a feature in Brackets, is NOT included in the brackets integration with Dreamweaver.


Hi everyone,

Please update to the latest version of Dreamweaver 2017.0.1 where most issues with code coloring have been addressed.

See Dreamweaver 2017.0.1 is now live  for more info.

This document  https://helpx.adobe.com/dreamweaver/using/customize-code-coloring.html has been updated to reflect changes.

Thanks,

Preran

2 replies

Paul-MAuthor
Legend
November 12, 2016

Please post a vote here folks so we can hopefully get full flexibility back for code colouring:

Restore Full Code Colouring Flexibility – Adobe Dreamweaver CC: Feature Ideas

The code colouring apart from being removed from the options because it's a half finished Brackets integration lacks serious flexibility, no language specific option even if you are prepared to edit the LESS theme file directly has been included.

I had an official response from Adobe that language-specific code colouring which is a feature in Brackets, is NOT included in the brackets integration with Dreamweaver.

Paul-M - Community Expert
Nancy OShea
Community Expert
Community Expert
November 8, 2016

This theme is called RubyBlue from GitHub.  It is a high contrast DarkTheme.  

PHP code

JavaScript:

Is this sort of what you're looking for?

Nancy O.

Nancy O'Shea— Product User & Community Expert
Paul-MAuthor
Legend
November 9, 2016

It's not a theme I need .... I need to know how to implement mode-aware styles, it works in standalone Brackets, doesn't work in the integrated Dreamweaver/Brackets.... It allows for colors to be specefied for specific languages CSS, PHP, JT etc ....  Gives more control and allows to make PHP standout in a page for example.

Paul-M - Community Expert
Nancy OShea
Community Expert
Community Expert
November 9, 2016

Oh, I see what you're asking for now.    Different code color schemes depending on the type of code it is -- php, JS, CSS, etc....

Sorry, I can't help you with that.

Nancy O.

Nancy O'Shea— Product User & Community Expert