[codemirror] add active line addon

This commit is contained in:
Raymond Hill 2018-03-05 06:59:03 -05:00
parent 1521d4326c
commit 9df0202a00
No known key found for this signature in database
GPG key ID: 25E1490B761470C2
5 changed files with 7 additions and 4 deletions

View file

@ -33,9 +33,10 @@
<script src="lib/codemirror/lib/codemirror.js"></script>
<script src="lib/codemirror/addon/display/panel.js"></script>
<script src="lib/codemirror/addon/search/searchcursor.js"></script>
<script src="lib/codemirror/addon/scroll/annotatescrollbar.js"></script>
<script src="lib/codemirror/addon/search/matchesonscrollbar.js"></script>
<script src="lib/codemirror/addon/search/searchcursor.js"></script>
<script src="lib/codemirror/addon/selection/active-line.js"></script>
<script src="js/codemirror/search.js"></script>
<script src="js/codemirror/ubo-static-filtering.js"></script>

View file

@ -26,9 +26,10 @@ body {
<script src="lib/codemirror/lib/codemirror.js"></script>
<script src="lib/codemirror/addon/display/panel.js"></script>
<script src="lib/codemirror/addon/search/searchcursor.js"></script>
<script src="lib/codemirror/addon/scroll/annotatescrollbar.js"></script>
<script src="lib/codemirror/addon/search/matchesonscrollbar.js"></script>
<script src="lib/codemirror/addon/search/searchcursor.js"></script>
<script src="lib/codemirror/addon/selection/active-line.js"></script>
<script src="js/codemirror/search.js"></script>
<script src="js/codemirror/ubo-static-filtering.js"></script>

View file

@ -23,7 +23,6 @@
.cm-staticnet.cm-block {color: #800;}
.cm-staticnet.cm-allow {color: #004f00;}
.cm-search-widget {
align-items: center;
background-color: #eee;

View file

@ -38,6 +38,7 @@ var cmEditor = new CodeMirror(
autofocus: true,
lineNumbers: true,
lineWrapping: true,
styleActiveLine: true
}
);

View file

@ -48,7 +48,8 @@
autofocus: true,
lineNumbers: true,
lineWrapping: true,
readOnly: true
readOnly: true,
styleActiveLine: true
}
);