Sublime Forum

Feature (or plugin) for showing unclosed HTML tags

#1

I’d like a feature (built-in or else) that can parse HTML documents and iterate through any HTML tags that are missing respective closing tags.

A bonus functionality would be if it can also be aware (via doctype) whether to warn about self-closing tags or not.

Practical use case / workflow:

  1. Hit designated shortcut.
  2. Feature parses document and
  3. For each case where a tag misses a closing tag, it stops at the opening tag.

Additionally, it would be like icing on the cake if it reports about results/progress on the status bar each time the shortcut is pressed.

0 Likes

#2

I think github.com/SublimeText/Tag does tag linting.

0 Likes

#3

quarnster: Thanks for the tip. Tried it and it seems to promptly report about unclosed or redundant tags. :smile:

0 Likes