Skip to content

Instantly share code, notes, and snippets.

@OneOfOne
Created February 3, 2015 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OneOfOne/08d1914ab0a85380468b to your computer and use it in GitHub Desktop.
Save OneOfOne/08d1914ab0a85380468b to your computer and use it in GitHub Desktop.
HTML-CSS-JS Prettify settings
{
"html": {
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg"],
"brace_style": "collapse",
"end_with_newline": true,
"indent_char": "\t",
"indent_handlebars": false,
"indent_inner_html": false,
"indent_scripts": "keep",
"indent_size": 1,
"max_preserve_newlines": 10,
"preserve_newlines": false,
"unformatted": ["a", "span", "img", "code", "pre", "sub", "sup", "em", "strong", "b", "i", "u", "strike", "big", "small", "pre", "h1", "h2", "h3", "h4", "h5", "h6"],
"wrap_line_length": 0,
"extra_liners": []
},
"css": {
"allowed_file_extensions": ["css", "scss", "sass", "less"],
"end_with_newline": false,
"indent_char": "\t",
"indent_size": 1,
"selector_separator": " ",
"selector_separator_newline": false
},
"js": {
"allowed_file_extensions": ["js", "json", "jshintrc", "jsbeautifyrc"],
"brace_style": "collapse",
"break_chained_methods": false,
"e4x": false,
"end_with_newline": false,
"eval_code": false,
"indent_char": "\t",
"indent_level": 0,
"indent_size": 4,
"indent_with_tabs": true,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 10,
"preserve_newlines": true,
"space_after_anon_function": false,
"space_before_conditional": false,
"space_in_empty_paren": false,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 0
}
}
{
"node_path": {"linux": "/usr/bin/node"},
"format_on_save": false,
"format_selection_only": true,
"print_diagnostics": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment