html.in 907 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. % vim: set ft=html sw=4 ts=8 :
  2. % START_INDENT
  3. <html>
  4. <body>
  5. <style>
  6. div#d1 { color: red; }
  7. div#d2 { color: green; }
  8. </style>
  9. <script>
  10. var v1 = "v1";
  11. var v2 = "v2";
  12. </script>
  13. <div>
  14. <div>
  15. text
  16. </div>
  17. </div>
  18. <div
  19. class="foo bar">
  20. text
  21. </div>
  22. <div class="foo bar"
  23. data="something">
  24. text
  25. </div>
  26. <div class="foo
  27. bar">
  28. text
  29. </div>
  30. <dl>
  31. <dd>
  32. dd text
  33. </dd>
  34. <dt>
  35. dt text
  36. </dt>
  37. </dl>
  38. <div
  39. class="test"
  40. style="color: yellow">
  41. text
  42. </div>
  43. </body>
  44. </html>
  45. % END_INDENT
  46. % START_INDENT
  47. % INDENT_EXE let g:html_indent_style1 = "inc"
  48. % INDENT_EXE let g:html_indent_script1 = "zero"
  49. % INDENT_EXE let g:html_indent_attribute = 1
  50. % INDENT_EXE call HtmlIndent_CheckUserSettings()
  51. <html>
  52. <body>
  53. <style>
  54. div#d1 { color: red; }
  55. div#d2 { color: green; }
  56. </style>
  57. <script>
  58. var v1 = "v1";
  59. var v2 = "v2";
  60. </script>
  61. <div
  62. class="test"
  63. style="color: yellow">
  64. text
  65. </div>
  66. </body>
  67. </html>
  68. % END_INDENT