如何在Dreamweaver中使代码更整洁?

时间:2012-09-09 15:30:24

标签: css dreamweaver

有没有快速简便的方法来转换代码,如下所示:

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

像这样漂亮和整洁:

<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>
如果有按钮按字母顺序放置css,

也会让生活更轻松

2 个答案:

答案 0 :(得分:1)

见这些类似的问题/答案:

我自己没有安装Dreamweaver,但根据this answer,应该有以下命令:

  • 命令&gt;应用格式
  • 命令&gt;清理HTML

答案 1 :(得分:0)

尝试:

Command -> Apply Source Formatting