htmltidyhtmltidykomodoedit

Komodo Edit - HTML reformatting / Tidy


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+D in Visual Studio would be brilliant. I am presently running Ubuntu with Tidy installed.


Solution

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

    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: