blob: 72a38b93c195117cab5f0e08b4b373c37c9d5855 [file] [log] [blame]
Bram Moolenaare8008642022-08-19 17:15:35 +01001% vim: set ft=html sw=4 ts=8 :
Bram Moolenaard47d5222018-12-09 20:43:55 +01002
3
Bram Moolenaare8008642022-08-19 17:15:35 +01004% START_INDENT
Aliaksei Budavei5ecb4522025-04-13 22:24:46 +03005% INDENT_EXE let b:html_indent_line_limit = 64
Bram Moolenaar7ff78462020-07-10 22:00:53 +02006<html>
7 <body>
8<style>
9div#d1 { color: red; }
10div#d2 { color: green; }
11</style>
12 <script>
13 var v1 = "v1";
14var v2 = "v2";
15 </script>
Bram Moolenaard47d5222018-12-09 20:43:55 +010016<div>
17<div>
18text
19</div>
20</div>
21
22<div
23class="foo bar">
24text
25</div>
26
27<div class="foo bar"
28data="something">
29text
30</div>
31
32<div class="foo
33bar">
34text
35</div>
36
Bram Moolenaar73fef332020-06-21 22:12:03 +020037<dl>
38<dd>
39dd text
40</dd>
41<dt>
42dt text
43</dt>
44</dl>
Bram Moolenaarc4573eb2022-01-31 15:40:56 +000045<div
46class="test"
47style="color: yellow">
48text
49</div>
Bram Moolenaar73fef332020-06-21 22:12:03 +020050
Bram Moolenaar7ff78462020-07-10 22:00:53 +020051 </body>
52</html>
Bram Moolenaar73fef332020-06-21 22:12:03 +020053
Bram Moolenaare8008642022-08-19 17:15:35 +010054% END_INDENT
Bram Moolenaar7ff78462020-07-10 22:00:53 +020055
56% START_INDENT
57% INDENT_EXE let g:html_indent_style1 = "inc"
58% INDENT_EXE let g:html_indent_script1 = "zero"
Bram Moolenaarc4573eb2022-01-31 15:40:56 +000059% INDENT_EXE let g:html_indent_attribute = 1
Bram Moolenaar7ff78462020-07-10 22:00:53 +020060% INDENT_EXE call HtmlIndent_CheckUserSettings()
61<html>
62 <body>
63<style>
64div#d1 { color: red; }
65div#d2 { color: green; }
66</style>
67 <script>
68 var v1 = "v1";
69var v2 = "v2";
70 </script>
Bram Moolenaarc4573eb2022-01-31 15:40:56 +000071<div
72class="test"
73style="color: yellow">
74text
75</div>
Bram Moolenaar7ff78462020-07-10 22:00:53 +020076</body>
77</html>
78% END_INDENT