Komodo Edit - HTML reformatting / Tidy

后端 未结 5 1044
执笔经年
执笔经年 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 08:01

    You can set up a command to run to replace a selection of HTML with the tidy version. Press Ctrl + R to bring up the command window and enter tidy -utf8 -asxhtml -i for the command which formats indented XHTML using UTF-8 encoding.

    Check the two boxes to "Pass selection as input" and "Insert output". You can also specify custom key bindings there.

    Example screenshot: http://grab.by/8C3t

提交回复
热议问题