

Tag_unindent : If one of these closing tags is encountered, the next line will be un-indented one level. Tag_indent : If one of these opening tags is encountered, the contents (next line) will be indented by one level. Ignored_tag_closing : What are the closing tags that tell the script to resume HTMLBeautify formatting? ignored_tag_opening : What are the opening tags that tell the script to ignore HTMLBeautify formatting?.You can configure which tags should be processed with this script: You can test the script with HTMLBeautifyTest.html: an HTML file with wacky indenting so you to see how this script works.Use the appropriate key command to run HTMLBeautify-or use HTMLBeautify from the Edit menu.(If no selection is made the plugin will run on the whole file.)
SUBLIME TEXT HTML CODE
SUBLIME TEXT HTML DOWNLOAD
SUBLIME TEXT HTML INSTALL

Use tag_pos_inline setting to define tags that might appear on one line. This script uses \t characters to create indentation levels and spacing-ST appears to honor whether the user prefers spaces or tabs in ST settings and adjusts accordingly. So, a workaround is to keep comments on their own lines: However, you can use multiple cursors ( Find All) or use Replace on the beginning of a tag.This script will not automatically expand minimized/compressed code-it will only try to “clean-up” code that needs to be re-indented This script assumes an effort has been made by the user to expand tags to different lines.(To change this, see instructions later in this README…) Notes HTMLBeautify v0.85 SublimeText (version 2 & 3)Ī plugin for Sublime Text, that formats (indents) HTML source code.ĭue to a conflict with other keymaps in Sublime Text, I am reverting the keymap back to the original setting:
