forked from rareyman/HTMLBeautify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTMLBeautify.sublime-settings
More file actions
34 lines (27 loc) · 1.63 KB
/
Copy pathHTMLBeautify.sublime-settings
File metadata and controls
34 lines (27 loc) · 1.63 KB
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
{
// indicates tags whose contents should be ignored (add more as needed)
"ignored_tag_opening" : "<script|<style|<!--|{\\*|<\\?php",
// indicates when to stop ignoring
"ignored_tag_closing" : "</script|</style|-->|\\*}|\\?>",
// the contents of these tag blocks will be indented (add/remove as desired)
"tag_indent":
"\\{% (if|for|block|else|spaceless)|<html|<head|<body|<div|<a|<nav|<ul|<ol|<dl|<li|<table|<thead|<tbody|<tr|<th|<td|<blockquote|<select|<form|<option|<optgroup|<fieldset|<legend|<label|<header|<section|<aside|<footer|<figure|<video",
// this signals when tags should be unindented (see tags above)
"tag_unindent":
"\\{% end|</html|</head|</body|</div|</a|</nav|</ul|</ol|</dl|</li|</table|</thead|</tbody|</tr|</th|</td|</blockquote|</select|</form|</option|</optgroup|</fieldset|</legend|</label|</header|</section|</aside|</footer|</figure|</video",
// these tags should be unindented and next line will be indented
"tag_unindent_line":
"\\{% else",
// these tags can sometimes be on one line (see example below)
"tag_pos_inline":
"\\{% if.*endif %\\}|\\{% block.*endblock %\\}|<link.*/>|<link.*\">|<meta.*/>|<script.*</script>|<div.*</div>|<a.*</a>|<li.*</li>|<dt.*</dt>|<dd.*</dd>|<th.*</th>|<td.*</td>|<legend.*</legend>|<label.*</label>|<option.*</option>|<input.*/>|<input.*\">|<!--.*-->",
// set true to remove empty line
"remove_extraline": true
// example (li):
// <ul>
// <li><span>inline</span></li> <!-- <li> and </li> on same line, script ignores indenting next line -->
// <li> <!-- <li> and </li> on different lines, script indents next line -->
// <p>expanded</p>
// </li>
// </ul>
}