如何在Firefox / Firebug中美化Javascript和CSS? [英] How to beautify Javascript and CSS in Firefox / Firebug?

查看:101
本文介绍了如何在Firefox / Firebug中美化Javascript和CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来美化JavaScript和CSS在Firebug?我希望能够查看格式化的js,而不是压缩版本。)

解决方案

CSS已经在Firebug中被美化了,如通过比较CSS选项卡或CSS窗格与原始来源清楚地看到的。



JavaScript,唉,不是。现在最好的做法是将代码粘贴到 http://jsbeautifier.org/ 。然而,如果你写一个Firebug的扩展这样做,你会有我们所有的感谢。 ; - )

Is there a way to beautify javascript and css in Firebug? I'd like to be able to view formatted js instead of the compressed version :).

解决方案

CSS is already beautified in Firebug, as clearly seen by comparing the CSS tab or CSS pane with the raw source.

JavaScript, alas, is not. The best you can do, for now, is to paste the code into something like http://jsbeautifier.org/ .

However, if you write a Firebug extension that does this, you will have all of our gratitude. ;-)

这篇关于如何在Firefox / Firebug中美化Javascript和CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆