Created
November 9, 2015 18:21
-
-
Save betsydupuis/5976869c1c22717961e5 to your computer and use it in GitHub Desktop.
Angular HTML Formatting Style for HTMLPrettify for Sublime Text 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// The plugin looks for a .jsbeautifyrc file in the same directory as the | |
// source file you're prettifying (or any directory above if it doesn't exist, | |
// or in your home folder if everything else fails) and uses those options | |
// along the default ones. | |
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options | |
// Documentation: https://github.com/einars/js-beautify/ | |
"html": { | |
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg"], | |
"brace_style": "collapse", // [collapse|expand|end-expand|none] Put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are | |
"end_with_newline": false, // End output with newline | |
"indent_char": " ", // Indentation character | |
"indent_handlebars": false, // e.g. {{#foo}}, {{/foo}} | |
"indent_inner_html": false, // Indent <head> and <body> sections | |
"indent_scripts": "keep", // [keep|separate|normal] | |
"indent_size": 4, // Indentation size | |
"max_preserve_newlines": 0, // Maximum number of line breaks to be preserved in one chunk (0 disables) | |
"preserve_newlines": true, // Whether existing line breaks before elements should be preserved (only works before elements, not inside tags or for text) | |
"unformatted": ["a", "b","big", "br", "cite", "code", "em", "i", "img", "input", "label", "select", "small", "span", "strong", "sub", "sup", "textarea"], | |
"wrap_line_length": 0, | |
"wrap_attributes": "force", | |
"wrap_attributes_indent_size": "2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment