20

If I've currently got a html tag highlighted in Notepad++, is there a way to automatically jump to the closing tag and vice-versa?

  • You might have better luck asking this on SO – Dana the Sane Aug 21 '10 at 17:18
  • You might be right there Dana, cheers! – keith Aug 24 '10 at 1:13
  • You can do this in sublime text if you install emmet plugin. Works like a charm - choose to highlight till closing tag. – r0berts Sep 28 '14 at 20:31
  • If you nested the HTML tags correctly with start and end tag, you can see a + or - sign on left side of Notepad++. – Biswapriyo Sep 11 '17 at 15:56
16

Yes there is, you can use the "html tag" plugin and do ctrl + t

From the plugin's description:

This plug-in provides two core functions to Notepad++: HTML and XML tag matching, like the built-in brace matching (Ctrl+B / Shift+Ctrl+B) HTML entity encoding/decoding (example: e to é and vice versa) Author: Martijn Coppoolse Source: http://sourceforge.net/projects/npp-plugins/files/HTMLTag/HTMLTag%20plugin%20v0.3/HTMLTag_plugin_v0.3.0_unicode.zip/download

  • This plugin is extremely slow and crashes when used on ending tags in a very large XML file (20k lines). – void.pointer Apr 13 '16 at 17:53
0

For the big file I was working on, my workaround to find the extra/missing div was to rename a copy of the file to file.java. Then replace "/div" with } and "div" with {.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.