26

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?

4
  • You might have better luck asking this on SO Aug 21, 2010 at 17:18
  • You might be right there Dana, cheers!
    – keith
    Aug 24, 2010 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, 2014 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, 2017 at 15:56

3 Answers 3

23

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

1
  • This plugin is extremely slow and crashes when used on ending tags in a very large XML file (20k lines). Apr 13, 2016 at 17:53
1

This workaround has worked for me:

  1. Close section
  2. Click on left margin one line under the closed section to add a marker
  3. Open the section again
  4. Hit F2 to jump to the marker
  5. Click on the marker to remove it

I came here looking for an easier way, but this might be the easiest thing without installing plugins.

2
  • I prefer this to a buggy plugin. Good tip. Thanks. Sep 14, 2022 at 16:32
  • Can this be turned into a macro?
    – pbarney
    Mar 17, 2023 at 15:05
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 {.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .