How to make code neater in Dreamweaver?

2019-08-31 01:23发布

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

2条回答
Juvenile、少年°
2楼-- · 2019-08-31 02:07

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
查看更多
Explosion°爆炸
3楼-- · 2019-08-31 02:09

Try:

Command -> Apply Source Formatting
查看更多
登录 后发表回答