Skip to main content
Participant
Dec 22, 2016 6:39 PM UTC
Answered

More Specific Code Coloring in DW2017

In main.less, is there a way to be more specific with coloring code, something like the attached picture?  The idea that all tags in a code type are colored the same makes for a lot of painful searching.

This topic is closed to new replies. Start a new post to keep the conversation going.
Preran
PreranCorrect answer
Legend
Jan 3, 2017 2:37 PM UTC

9 replies

Participating Frequently
Jun 28, 2020 7:12 PM UTC

Hi All,

 

We have started working on “Code Color Customization” improvements by adding support for customization of generic and language specific colors.


We have further stabilized the code coloring feature in our latest Prerelease build 15333.


You can refer to below thread for more details on code coloring customization improvements.
https://forums.adobeprerelease.com/dwalpha/discussion/467/dreamweaver-build-15333-is-now-available#l...

 

Please join Dreamweaver beta program from below link and try out the feature.

https://www.adobeprerelease.com/beta/9EB451B5-D2E8-46E5-AFA2-78C85442FFA2/participate/CD0C95AA-6274-...

 

Please go ahead and try out the build and let inflow your thoughts/suggestions. Looking forward to your valuable feedback.

 

Thanks


Dreamweaver Team

Translate
Participant
Dec 22, 2016 10:35 PM UTC
Preran
PreranCorrect answer
Legend
Jan 3, 2017 2:37 PM UTC

I also suggest upvoting this request on uservoice

More specific code coloring in DW2017 – Adobe Dreamweaver CC: Feature Ideas

Translate
Nancy OShea
Community Expert
Community Expert
Dec 22, 2016 7:40 PM UTC

What are you specifically tying to target in your PHP code theme? 

Can you paste an example of the PHP code you're using and what you want to change that you can't?

Translate
Nancy O'Shea— Product User & Community Expert
Participant
Dec 22, 2016 7:56 PM UTC

<!doctype html>

<html>

  <head>

  <meta charset="utf-8">

  <title>Some Document</title>

  </head>

  <body>

  <div>

  <form method="post" action="<?=$_SERVER['PHP_SELF']?>">

  <label>

  Name

  <br>

  <input type="text" name="name" style="color:#282828"/>

  </label>

  <button>

  Save

  </button>

  </form>

  </div>

  </body>

</html>

I would like to be able to have each one of these tags as a different color as well as the CSS on the inline styling, attributes, strings, etc... Kind of like this example.

Translate
Nancy OShea
Community Expert
Community Expert
Dec 22, 2016 8:52 PM UTC

As far as I know, that's not possible.  .cm-tag is universal -- effecting the code color of all such tags.

Learn how you can customize the colors of your code elements in Dreamweaver.

Below, I opened your code in Chrome with the Token Inspector tool.  As you can see, the .cm-tag highlights all the tags.

Translate
Nancy O'Shea— Product User & Community Expert