本文介绍了科莫多编辑 - HTML重新格式化/整齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法可以从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:

komodo edit macro

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重新格式化/整齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 11:57
查看更多