Code formatting - slash in self closing tags

Hello everyone

Shame to ask this, how can I get <br /> <img /> self closing tags in html files.

I tried in xhmtl files, it works well.

Any help is greatly appreciated!

1 comment
Comment actions Permalink

Not sure I follow you... Is it about Emmet (i.e. generating tags when entering name and hitting Tab)?

In HTML5 tags like <br> or <img> do not require a "/ " for closing them like "<br/> " (http://www.w3.org/TR/html5/text-level-semantics.html#the-br-element,
http://www.w3.org/TR/html5/syntax.html#void-elements).

However, you can easily change current behavior in "Settings | Editor | Live Template | Zen Html | br/img"

Please also feel free to vote for https://youtrack.jetbrains.com/issue/WEB-16193

0

Please sign in to leave a comment.