Skip to main content
Legend
Jan 8, 2017 4:59 PM UTC
Question

CSS Code Formatting Options??

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 is closed to new replies. Start a new post to keep the conversation going.

4 replies

Paul-MAuthor
Legend
Jan 9, 2017 1:12 PM UTC

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

Translate
Paul-M - Community Expert
Nancy OShea
Community Expert
Community Expert
Jan 9, 2017 12:05 AM UTC

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

Translate
Nancy O'Shea— Product User & Community Expert
BenPleysier
Community Expert
Community Expert
Jan 8, 2017 11:25 PM UTC

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.

Translate
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
Jan 8, 2017 9:41 PM UTC

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

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

Nancy

Translate
Nancy O'Shea— Product User & Community Expert