blob: 4963634465c6f9a1b3c2234ba845da7a9c4b1999 [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
Bram Moolenaar7ff78462020-07-10 22:00:53 +02005<html>
6 <body>
7 <style>
8div#d1 { color: red; }
9div#d2 { color: green; }
10 </style>
11 <script>
12 var v1 = "v1";
13 var v2 = "v2";
14 </script>
15 <div>
16 <div>
17 text
18 </div>
19 </div>
Bram Moolenaard47d5222018-12-09 20:43:55 +010020
Bram Moolenaar7ff78462020-07-10 22:00:53 +020021 <div
Bram Moolenaar942db232021-02-13 18:14:48 +010022 class="foo bar">
Bram Moolenaar7ff78462020-07-10 22:00:53 +020023 text
24 </div>
Bram Moolenaard47d5222018-12-09 20:43:55 +010025
Bram Moolenaar7ff78462020-07-10 22:00:53 +020026 <div class="foo bar"
27 data="something">
28 text
29 </div>
Bram Moolenaard47d5222018-12-09 20:43:55 +010030
Bram Moolenaar7ff78462020-07-10 22:00:53 +020031 <div class="foo
32 bar">
33 text
34 </div>
Bram Moolenaard47d5222018-12-09 20:43:55 +010035
Bram Moolenaar7ff78462020-07-10 22:00:53 +020036 <dl>
37 <dd>
38 dd text
39 </dd>
40 <dt>
41 dt text
42 </dt>
43 </dl>
Bram Moolenaarc4573eb2022-01-31 15:40:56 +000044 <div
45 class="test"
46 style="color: yellow">
47 text
48 </div>
Bram Moolenaar73fef332020-06-21 22:12:03 +020049
Bram Moolenaar7ff78462020-07-10 22:00:53 +020050 </body>
51</html>
Bram Moolenaar73fef332020-06-21 22:12:03 +020052
Bram Moolenaare8008642022-08-19 17:15:35 +010053% END_INDENT
Bram Moolenaar7ff78462020-07-10 22:00:53 +020054
55% START_INDENT
56% INDENT_EXE let g:html_indent_style1 = "inc"
57% INDENT_EXE let g:html_indent_script1 = "zero"
Bram Moolenaarc4573eb2022-01-31 15:40:56 +000058% INDENT_EXE let g:html_indent_attribute = 1
Bram Moolenaar7ff78462020-07-10 22:00:53 +020059% INDENT_EXE call HtmlIndent_CheckUserSettings()
60<html>
61 <body>
62 <style>
63 div#d1 { color: red; }
64 div#d2 { color: green; }
65 </style>
66 <script>
67var v1 = "v1";
68var v2 = "v2";
69 </script>
Bram Moolenaarc4573eb2022-01-31 15:40:56 +000070 <div
71 class="test"
72 style="color: yellow">
73 text
74 </div>
Bram Moolenaar7ff78462020-07-10 22:00:53 +020075 </body>
76</html>
77% END_INDENT