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 SaneCommented Aug 21, 2010 at 17:18
-
You might be right there Dana, cheers!– keithCommented 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.– r0bertsCommented 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++.– BiswapriyoCommented Sep 11, 2017 at 15:56
3 Answers
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). Commented Apr 13, 2016 at 17:53
This workaround has worked for me:
- Close section
- Click on left margin one line under the closed section to add a marker
- Open the section again
- Hit F2 to jump to the marker
- 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.
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 {.