Highlighted

Solved - "Apply Source Formatting" deletes indents instead of adding them

New Here ,
Oct 25, 2019

Copy link to clipboard

Copied

Solved, by restarting dreamweaver

 

[Forgive me if I am wrong, but I thought the purpose of "]Apply Source Formatting" is to rewrite the code (html) according the preferences settings. When I run this on a html page, dreamweaver is deleting all indents instead of cleaning up the indents or adding extra indents where necessary.
This especially concern my students as I substract points, when they deliver non-indented code 😉

Adobe Community Professional
Correct answer by Paul-M | Adobe Community Professional

Have you set your indent options  in  preferences > code format ?

 

Also please state your OS and what version of Dreamweaver you are using...

 

code_format.png

TOPICS
Code, How to, Product issue

Views

293

Likes

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

Solved - "Apply Source Formatting" deletes indents instead of adding them

New Here ,
Oct 25, 2019

Copy link to clipboard

Copied

Solved, by restarting dreamweaver

 

[Forgive me if I am wrong, but I thought the purpose of "]Apply Source Formatting" is to rewrite the code (html) according the preferences settings. When I run this on a html page, dreamweaver is deleting all indents instead of cleaning up the indents or adding extra indents where necessary.
This especially concern my students as I substract points, when they deliver non-indented code 😉

Adobe Community Professional
Correct answer by Paul-M | Adobe Community Professional

Have you set your indent options  in  preferences > code format ?

 

Also please state your OS and what version of Dreamweaver you are using...

 

code_format.png

TOPICS
Code, How to, Product issue

Views

294

Likes

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
Oct 25, 2019 0
Adobe Community Professional ,
Oct 25, 2019

Copy link to clipboard

Copied

Have you set your indent options  in  preferences > code format ?

 

Also please state your OS and what version of Dreamweaver you are using...

 

code_format.png

Paul-M, ACP

Likes

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
Reply
Loading...
Oct 25, 2019 0
Adobe Community Professional ,
Oct 25, 2019

Copy link to clipboard

Copied

Apply source formatting only indents code if that's how you have things set-up in your tag libraries.  Personally, I see no advantage in indented code.  My OCD side has always preferred working with left aligned markup.  To the matter of subtracting points from students, I think that's terrible.  Indents have no effect on performance or whether the code is actually any good or not.   Formatting code with/without indents is a personal choice, not a web standard.

 

 

 

 

Nancy O'Shea, ACP
Alt-Web Design & Publishing

Likes

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
Reply
Loading...
Oct 25, 2019 1
Paul-M LATEST
Adobe Community Professional ,
Oct 25, 2019

Copy link to clipboard

Copied

There's actually still isues with tag libraries

Paul-M, ACP

Likes

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
Reply
Loading...
Oct 25, 2019 0