高亮当前行

This commit is contained in:
Liang Ding 2014-09-01 14:04:05 +08:00
parent b244c94e8f
commit a049e97e7f
2 changed files with 2 additions and 0 deletions

View File

@ -167,6 +167,7 @@ var editors = {
var editor = CodeMirror.fromTextArea(document.getElementById("editor" + id), {
lineNumbers: true,
styleActiveLine: true,
theme: 'lesser-dark',
indentUnit: 4,
extraKeys: {

View File

@ -78,6 +78,7 @@
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/ztree/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/codemirror.js"></script>
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/selection/active-line.js"></script>
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/hint/show-hint.js"></script>
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/hint/anyword-hint.js"></script>
<script type="text/javascript" src="{{.Wide.StaticServer}}/static/js/lib/codemirror-4.5/addon/display/fullscreen.js"></script>