• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Dreamweaver CC 2017.5 - classic theme problem

Participant ,
Jun 19, 2017 Jun 19, 2017

Copy link to clipboard

Copied

I very disappointed with Adobe Dreamweaver CC 2017.5. I was hoping the new Classic Theme option would have the option to see my PHP code in the colors as it has been for the last 10 years.

The issue is "Document type" is not available in Dreamweaver CC 2017.5 as it was in Dreamweaver CC 2015 (screen print below to illustrate).

Tech support has sent me the following link: Learn how you can customize the colors of your code elements in Dreamweaver.

However we should not have to spend hours trying to make the code colors look like it did in the previous version.

Views

885

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Jun 19, 2017 Jun 19, 2017

I managed to make the PHP code colors look like they were in Dreamweaver CC 2015.

Here are the changes I made to main.less

Change the background to white:

====

/* Define some variables used in multiple places */

/* 1. Background color for the code view */

@background: #FFFFFF;

/* 2. Foreground color for the code view (Regular strings or text) */

@foreground: #3A3A3A;

====

also in the PHP section I added the following:

====

.cm-comment {

    color: #ffa86c !important;

}

.cm-keyword {

    color: #00750f !importan

...

Votes

Translate

Translate
Participant ,
Jun 19, 2017 Jun 19, 2017

Copy link to clipboard

Copied

I managed to make the PHP code colors look like they were in Dreamweaver CC 2015.

Here are the changes I made to main.less

Change the background to white:

====

/* Define some variables used in multiple places */

/* 1. Background color for the code view */

@background: #FFFFFF;

/* 2. Foreground color for the code view (Regular strings or text) */

@foreground: #3A3A3A;

====

also in the PHP section I added the following:

====

.cm-comment {

    color: #ffa86c !important;

}

.cm-keyword {

    color: #00750f !important;

}

.cm-def {

    color: #000000 !important;

}   

.cm-variable-2 {

    color: #0e83fc !important;

}

.cm-variable-3 {

    color: #db2114 !important;

}   

.cm-string {

    color: #db2114 !important;

}

====

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 19, 2017 Jun 19, 2017

Copy link to clipboard

Copied

Also this link is very helpful in determining the CSS names.

CodeMirror: Token inspector Demo

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 19, 2017 Jun 19, 2017

Copy link to clipboard

Copied

In addition to the CSS I show above, I also needed to add the following to the main.less in two areas, the HTML and the PHP. This will allow the cursor to be seen when tags or brackets are highlighted.

====

.CodeMirror-matchingtag {

    background-color: #CCCCCC !important;

}

.CodeMirror-matchingbracket {

    background-color: #dedede;

}

====

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 28, 2017 Jun 28, 2017

Copy link to clipboard

Copied

LATEST

The first thing I'd like to mention is that any changes to the main.less file require restarting Dreamweaver before the changes take effect.

If you would like to make Dreamweaver CC 2017.5 look like it did on Dreamweaver 2015 using the PHP theme here is what you can do.

Edit the main.less file.

Line #133 change the background to white:

@background: FFFFFF;​

All other changes have been added below line #407

====

/* Custom code colors or overrides should start after this line */

.cm-comment {

    color: #ffa86c !important;

}

.cm-keyword {

    color: #00750f !important;

}

.cm-def {

    color: #000000 !important;

}

.cm-variable-2 {

    color: #0e83fc !important;

}

.cm-variable-3 {

    color: #db2114 !important;

}

.cm-string {

    color: #db2114 !important;

}

.CodeMirror-matchingbracket, .CodeMirror-matchingtag {

/* Ensure visibility against white background */

    background-color: #ffffff !important;

    color: #000000 !important;

}

====

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines