Detect starting / ending XML tag

Good morning

Supposed an XML file


If the caret is at line </def>, is there a right way  to detect that it is an ending tag
(other than getting text under the line and test if contains ‘</def>’

Why this question ?, because using intention I’d like to insert after a starting tag or insert before an ending tag.

Best regards



Please sign in to leave a comment.