.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
CodeMirror
Home Manual Code
Tag Matcher
Tag Matcher Demo
window.onload = function() { editor = CodeMirror(document.getElementById("editor"), { value: " \n " + document.documentElement.innerHTML + "\n ", mode: "text/html", matchTags: {bothTags: true}, extraKeys: {"Ctrl-J": "toMatchingTag"} }); };
Put the cursor on or inside a pair of tags to highlight them. Press Ctrl-J to jump to the tag that matches the one under the cursor.