notepad2-mod
                                
                                 notepad2-mod copied to clipboard
                                
                                    notepad2-mod copied to clipboard
                            
                            
                            
                        XML/HTML tags match
This is Issue 27 moved from a Google Code project. Added by 2011-05-16T10:16:06.000Z by [email protected]. Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Enhancement, Priority-Medium
Original description
Feature request - the same as brace highlight/match but for XML tags. For example when the cursor is over a <tag> then highlight </tag>
This should support two types of XML/HTML tags closing:
1 . <tag attr="val">blahblah</tag>
2. <tag attr="val" />
I would love to see this added as well. Pretty much the only thing I've been missing so far.
Brace matching is handled by Scintilla. This would have to be sent upstream to be implemented, wouldn't it? SciTE doesn't seem to match HTML elements either (unless I'm missing something?).
Notepad++ uses Scintilla and supports this fully.
This might help: http://sourceforge.net/projects/npp-plugins/files/HTMLTag/ It does - for Notepad++ - exactly what has been requested here. To my knowledge it has already been included since, without the use of this plugin, but this code is isolated, should make it easier to go through.
@ltGuillaume: that's Pascal not C.
Well that was stupid, didn't even bother to check :/ Sorry.
The Notepad++ C code can be found inside these two files: /PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.cpp and /PowerEditor/src/ScitillaComponent/xmlMatchedTagsHighlighter.h
Source download: http://notepad-plus-plus.org/download/