Hello World
Hello World

Reputation: 1129

How to make code neater in Dreamweaver?

is there any quick and easy way to convert code from looking like this:

<style>
element { property:value; property:value; 
property:value; 
property:value; }

element { property:value; property:value; property:value; property:value; property:value; }
element {property:value; property:value; property:value; 
property:value; 
property:value; property:value; 
}
</style>
<div>
content content content <div> content </div>
  </div>

to being nice and neat like this:

<style>

element { property:value; property:value; property:value; property:value; }

element { property:value; property:value; property:value; property:value; }

element { property:value; property:value; property:value; property:value; }

</style>

<div>
content content content 
      <div> 
          content 
      </div>
</div>

it would also make life easier if there was a button to put css in alphabetical order

Upvotes: 0

Views: 969

Answers (2)

Lasse Christiansen
Lasse Christiansen

Reputation: 10325

See these similar questions / answers:

I do not have Dreamweaver installed myself, but according to this answer the following commands should be available:

  • Commands > Apply Formatting
  • Commands > Clean up HTML

Upvotes: 1

iambriansreed
iambriansreed

Reputation: 22241

Try:

Command -> Apply Source Formatting

Upvotes: 0

Related Questions