Skip to main content
Legend
January 8, 2017
Question

CSS Code Formatting Options??

  • January 8, 2017
  • 4 replies
  • 1508 views

Has anyone worked out how to set code format options for CSS when using the 'format code' option.

I know the CSS format options it's been removed from the preferences

I know there are some options when setting up preprocessors

... What I want to know is if anyone has worked out where in all the CodeMIrror files you can edit the options for how your CSS code is formatted when working on a site WITHOUT using a preprocessr?

This topic has been closed for replies.

4 replies

Paul-MAuthor
Legend
January 9, 2017

Quick look at Dreamweaver structure finds this:

C:\Program Files\Adobe\Adobe Dreamweaver CC 2017\www\extensions\default\BracketsDWBeautify\thirdparty\beautify-css.js

Not looked at the file, too busy at the moment ...

Paul-M - Community Expert
Nancy OShea
Community Expert
Community Expert
January 9, 2017

It looks like Brackets offered 2 extensions for formatting code. 

One was called Beautify & it's based on the JS Beautifyer build.

The other was called Auto Formatter which utilized a Code Mirror feature.

So which method does DW use to format code?   I honestly don't know.

Nancy

Nancy O'Shea— Product User & Community Expert
BenPleysier
Community Expert
Community Expert
January 8, 2017

Normally I would suggest that you submit a feature request, but after seeing the work that you have already done regarding code colouring, I have a feeling that this is better handled by members of the Dreamweaver Development Team. Just let Preran​ know and I am sure that he will pass it on.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Nancy OShea
Community Expert
Community Expert
January 8, 2017

Code Format is how your code is indented and lined up on screen.

LESS .codeMirror classes only effect the code colors & backgrounds.

Nancy

Nancy O'Shea— Product User & Community Expert