Skip to content

Commit

Permalink
HTML tag highlight added
Browse files Browse the repository at this point in the history
  • Loading branch information
sathyamoorthi committed Jul 18, 2013
1 parent ace6a51 commit 7c85791
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ define(function (require, exports, module) {
lineWrapping: _wordWrap,
styleActiveLine: _styleActiveLine,
matchBrackets: true,
matchTags: true,
dragDrop: false,
extraKeys: codeMirrorKeyMap,
autoCloseBrackets: _closeBrackets,
Expand Down
2 changes: 2 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
<!-- Pre-load third party scripts that cannot be async loaded. -->
<script src="thirdparty/jquery-2.0.1.min.js"></script>
<script src="thirdparty/CodeMirror2/lib/codemirror.js"></script>
<script src="thirdparty/CodeMirror2/addon/fold/xml-fold.js"></script>
<script src="thirdparty/CodeMirror2/addon/edit/matchtags.js"></script>
<script src="thirdparty/CodeMirror2/addon/edit/matchbrackets.js"></script>
<script src="thirdparty/CodeMirror2/addon/edit/closebrackets.js"></script>
<script src="thirdparty/CodeMirror2/addon/edit/closetag.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions src/styles/brackets_codemirror_override.less
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@
&.CodeMirror-focused .CodeMirror .CodeMirror-activeline-background {
background: transparent !important;
}

.CodeMirror-matchingtag { background: @background-color-2; }
}

/*
Expand Down

0 comments on commit 7c85791

Please sign in to comment.