[英]Netbeans format JS code inside html tags
NetBeans is not smart enough to format Javascript code inside HTML tags. NetBeans不够聪明,无法在HTML标记内格式化Javascript代码。
Is there any plugins or solutions for this? 是否有任何插件或解决方案?
I have only found this link but it only works on a clean.js
file. 我仅找到此链接,但仅适用于
clean.js
文件。
Only thing that comes on my mind is copying content to a js file formatting it and then past it back. 我唯一想到的就是将内容复制到一个js文件中以对其进行格式化,然后再将其粘贴回去。
You can use any online tool to format your code as there is present a lot of tools to beautify it. 您可以使用任何在线工具来格式化您的代码,因为目前有许多工具可以美化它。
Here is the one link . 这是一个链接 。 This tool is very nice as I have seen that you can use this tool to formatting any code like HTML, PHP, Javascript, or CSS as a time.
正如我所见,该工具非常好,您可以一次使用该工具来格式化任何代码,例如HTML,PHP,Javascript或CSS。
Hope this will be helpful to you. 希望这对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.