Skip to content

Indent non-javascript contents of <script> tag as HTML.#1

Open
svbatalov wants to merge 1 commit into
vim-scripts:masterfrom
svbatalov:indent-script-template
Open

Indent non-javascript contents of <script> tag as HTML.#1
svbatalov wants to merge 1 commit into
vim-scripts:masterfrom
svbatalov:indent-script-template

Conversation

@svbatalov
Copy link
Copy Markdown

Sometimes <script> tags are used to store templates:

  <script id="..." type="text/template">
    ... some HTML-like content ...
  </script>

Then it is desirable to indent <script> content as well.

NOTE: In this trivial implementation the value of g:html_indent_script1 is ignored when indenting template.
NOTE 2: It is easy to apply this hack only to "text/template" (or something like that) types of scripts.

Sometimes <script> tags are used to store templates:

  <script id="..." type="text/template">
    ... some HTML-like content ...
  </script>

Then it is desirable to indent <script> content as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant