问题描述
是否有一种简单的方法可以从Komodo Edit中重新格式化我的HTML,或者是将这个过程自动化为Tidy?像Visual Studio中的 + , + 会很棒。如果你想要一个简单的解决方案,请执行以下操作:
>打开右侧的工具箱面板
点击齿轮并选择New Macro,将其命名为您喜欢的名称。
获取宏代码:
的代码和作品就像一个魅力......
接下来是设置按键:
选择您的新宏工具箱
现在转到键绑定
键入一个序列,它会告诉您输入的序列是否可用。我使用Ctrl + /因为它们彼此靠近。
干杯!
Is there a simple way to reformat my HTML from within Komodo Edit or to automate the process against Tidy? Something like the +, + in Visual Studio would be brilliant. Presently running Ubuntu with Tidy installed.
If you want a solution that just straight up works, do the following:
Pop open the toolbox panel on the rightClick on the gear and select New Macro, name it what you like.
Get the macro code here:
It includes the code from http://jsbeautifier.org/ and works like a charm...
Next is to set up a keystroke:
Select your new macro in the toolboxNow go to key bindings
Type a sequence and it will tell you if the sequence you typed is available. I use ctrl+/ because they are near each other.
Cheers!
这篇关于科莫多编辑 - HTML重新格式化/整齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!