Komodo Edit - HTML reformatting / Tidy

后端 未结 5 1043
执笔经年
执笔经年 2021-02-06 07:08

Is there a simple way to reformat my HTML from within Komodo Edit or to automate the process against Tidy?

Something like the Ctrl+K, Ctrl

5条回答
  •  孤街浪徒
    2021-02-06 07:48

    If you want a solution that just straight up works, do the following:

    • Pop open the toolbox panel on the right.
    • Click on the gear and select New Macro. Name it what you like.

    Get the macro code here:

    Komodo edit macro (404)

    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 toolbox

    • Now 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.

提交回复
热议问题