Giter Site home page Giter Site logo

flkeysgeek / custom-tag-code-coloring Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 623 KB

Dreamweaver Custom Tag Colors for CC 2017 -- Notable Code View Cursor in Design view

CSS 37.03% HTML 24.97% JavaScript 38.00%
restore theme highlighting light adobe cc-2017 dreamweaver tag-colors codemirror dark-theme code-coloring preference

custom-tag-code-coloring's Introduction

IMPORTANT UPDATE:

  • updated xml.js -- fixes code view render issue with some span tags
  • Dreamweaver extension available by end of month

Dreamweaver Custom Tag Code Coloring (CC 2017)

Adobe Dreamweaver CC 2017 lost the ability to define custom tag Code Coloring.

The included xml.js restores that feature as shown below:

Defining tag code coloring in the coming July release is REAL easy

Auto generates css of the form as described in next section (to be moved to wiki TBD section).

The tag colors are defined by adding css of the following form to a custom theme:

span.cm-m-xml.cm-tag.cm-tag-body {
  color: red;
}
span.cm-m-xml.cm-tag.cm-tag-h1 {
  color: hotpink;
}
span.cm-m-xml.cm-tag.cm-tag-form {
  color: orange;
}
span.cm-m-xml.cm-tag.cm-tag-input {
  color: #0BF90E;
}

Coming Soon!!

Dreamweaver extension with screens similar to CC 2015 Code Coloring...

CC 2015.1 screenshot
CC 2015.1 screenshot

Notable Code View Cursor and current selection

Make current selection or cursor highly visible (notable) in Code View.

...When code view does NOT have focus -- selection -or- cursor shows as follows:

selection (does not blink) . . . . . . . . . . . . . . . . cursor -- blinks for 15 seconds (default)

. . .

  • Above arrows are hidden when selection starts in first column
  • Below arrows hidden for multi-line selections or selection ends in last column.

Light themes show as follows:

Notable cursor shows when find or any other dialog box is open including right click context menu.

Color/size of cursor, arrows, highlighted selections can all be changed via css.

additional screen prints

Coming Soon...

Dreamweaver extension with GUI screen for setting colors/sizes by theme.


Installation

  • Custom Tag Code Coloring and Notable Code View Cursors are implemented via css styles
  • They can be installed separately by selectively adding css to custom theme
  • both require a custom Dreamweaver theme -- create or select as follows
  1. Download theme-css

  2. From DW menu: edit > preferences > Interface (left panel category)

  3. Select or Create new "Color Theme" -- click Apply if new or not selected

  4. click on pencil icon to open and edit the selected theme in Dreamweaver

  5. At bottom of file: Add css for custom tag colors and/or Notable Code View cursors

Create custom Dreamweaver theme as explained by Adobe:

Customize code themes

  • good instructions -- no need visit reference links
  • Customize code colors for mixed code files (should get done by default)

Custom Tag Colors requires Dreamweaver code update

An updated xml.js must be installed -- it adds the additional cm-tag-<...> class.

  • download xml.js.zip
  • open and copy "www" into...
    ...windows: %appdata%\Adobe\Dreamweaver CC 2017\
    ...On Mac: ~/Library/Application Support/Adobe/Dreamweaver CC 2017/
  • close and reopen Dreamweaver

caution: DW releases after 2017.5, DO NOT use updated xml.js unless the installed xml.js matches xml.js (Adobe installed version for CC 2017.2 and 2017.5)

Coming Soon -- Dreamweaver extension !!

  • GUI screen for setting colors/sizes by theme
  • select tag colors via color picker
  • automatically updates selected theme main.less files
  • updates xml.js when necessary
  • access to tag color repository

tag color repository

  1. default tag colors from CC 2015
  2. tag colors shared by other designers
  3. share your tag colors with other Designers

feedback encouraged

[email protected]

Coming Next -- devtools extension

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.