![]() On windows, when the output of a command is inserted into an edit buffer it has unix line ends. It will be close to the where it started depending on how the text was modified. ![]() Run_RunEncodedCommand(window, formatter + " ") Var text_not_selected = cannot_tidy_selection || = "" Select Buffer, pipe it into formatter. Save the file, Check Changes with "File -> Show Unsaved Changes" Var koDoc = (komodo.koDoc = undefined ? komodo.document : komodo.koDoc) įormatter = 'astyle -style=ansi -mode=cs -convert-tabs -indent=spaces=4 %F > /dev/null 2>&1 cat %F' įormatter = 'astyle -style=linux -mode=c -convert-tabs -indent=spaces=4 %F > /dev/null 2>&1 cat %F' įormatter = 'csstidy -preserve_css=true -lowercase_s=true -case_properties=true -sort_properties=true -remove_bslash=false -silent=true -template=medium' įormatter = 'tidy -q -asxhtml -i -b -c -w 120 -show-warnings no -show-errors 0 -tidy-mark no -css-prefix block -drop-proprietary-attributes yes -anchor-as-name no -enclose-text yes' įormatter = 'astyle -style=java -mode=java -convert-tabs -indent=spaces=4 %F > /dev/null 2>&1 cat %F' įormatter = 'php_beautifier -s4 -l"Pear()"' įormatter = 'tidy -q -xml -i -w 120 -show-warnings no -show-errors 0 -tidy-mark no' įormatter = 'xmllint -format -recover -' Īlert("Syntax Undefined, Add Case to Macro " + language) This should finally answer this question, it might be time to accept my answer.įormat_Syntax.js komodo.assertMacroVersion(3) I should also mention my JS is dreadful, but I did verify what I could and the macro worked. I must warn you, I don't have Ruby installed so I'm unable to fully test. ![]() I have finally integrated support for Ruby, You must have rbeautify installed in your PATH. At this point the entire macro needs to be completely redone, as its limitations have become obvious.Īs for Ruby Support, check out rbeautify, I also had to create a very ugly kludge to get astyle working, as astyle does not accept stdin. I changed some of the tidy and csstidy options, added the XML support, and altered the undefined syntax alert. Each tier has access to a progressively wider portion of the catalog. It forms the environment in which a program or script can be executed. A runtime is the built collection of artifact (s) that you download and install to your workstation. I've updated the macro for both Komodo Edit 7.0 and 6.X, it usually works well enough. Full end-to-end software supply chain security, extended life support, and redistribution at scale. Variations have been floating around the Komodo Forums for some time. I use this slightly edited version of other posted code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |