-
Notifications
You must be signed in to change notification settings - Fork 258
/
Copy pathHTMLPrettify.sublime-settings
95 lines (83 loc) · 3.67 KB
/
HTMLPrettify.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
// Simply using `node` without specifying a path sometimes doesn't work :(
// https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
// http://nodejs.org/#download
"node_path":
{
"windows": "C:/Program Files/nodejs/node.exe",
"linux": "/usr/bin/nodejs",
"osx": "/usr/local/bin/node"
},
// Automatically format when a file is saved.
"format_on_save": false,
// Automatically format when a file is opened. (Sublime Text 3 only)
"format_on_open": false,
// Automatically format when a file is focused. (Sublime Text 3 only)
"format_on_focus": false,
// Automatically format when a file loses focus. (Sublime Text 3 only)
"format_on_focus_lost": false,
// Automatically format while a file is being edited. (Experimental / Sublime Text 3 only)
"format_while_editing": false,
// Only format the selection if there's one available.
"format_selection_only": true,
// Save to a temporary file before prettifying.
"save_to_temp_file_before_prettifying": true,
// Settings determining which files are allowed to be prettified.
// !!! All the keys below need to be included in your user settings for them to work. !!!
"global_file_rules":
{
// Be sure to include all of the `html`, `css`, `js` and `json` keys in your user settings
// if you want to be able to prettify the default files as well.
"html":
{
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "vue"],
"allowed_file_syntaxes": ["html", "xml", "vue"],
"disallowed_file_patterns": []
},
// Be sure to include all of the `html`, `css`, `js` and `json` keys in your user settings
// if you want to be able to prettify the default files as well.
"css":
{
"allowed_file_extensions": ["css", "scss", "sass", "less"],
"allowed_file_syntaxes": ["css", "sass", "less"],
"disallowed_file_patterns": []
},
// Be sure to include all of the `html`, `css`, `js` and `json` keys in your user settings
// if you want to be able to prettify the default files as well.
"js":
{
"allowed_file_extensions": ["js", "jsx"],
"allowed_file_syntaxes": ["javascript", "ecma", "react", "babel"],
"disallowed_file_patterns": []
},
// Be sure to include all of the `html`, `css`, `js` and `json` keys in your user settings
// if you want to be able to prettify the default files as well.
"json":
{
"allowed_file_extensions": [
"json",
"babelrc",
"eslintrc",
"jshintrc",
"jsbeautifyrc",
"sublime-settings",
"sublime-keymap",
"sublime-commands",
"sublime-menu"
],
"allowed_file_syntaxes": ["json"],
"disallowed_file_patterns": []
}
},
// Respect `.editorconfig` rules, overriding settings from `.jsbeautifyrc`.
// Note that `use_editor_syntax` and `use_editor_indentation` have precedence
// and will always override any other settings from any configuration file
// like `.jsbeautifyrc` and `.editorconfig`.
"respect_editorconfig_files": true,
// Use current syntax to determine file type, instead of the extension.
"use_editor_syntax": true,
// Use current identation settings to override the ones from `.jsbeautifyrc`.
"use_editor_indentation": false,
// Log the settings passed to the prettifier from `.jsbeautifyrc`.
"print_diagnostics": true
}