Add active line highlight.

This commit is contained in:
jkaplon 2016-10-05 13:59:59 -04:00
parent 6e91f62713
commit bfc7250aa1

View File

@ -10,6 +10,7 @@
<link rel="stylesheet" href="lib/codemirror.css"> <link rel="stylesheet" href="lib/codemirror.css">
<link rel="stylesheet" href="addon/dialog/dialog.css"> <link rel="stylesheet" href="addon/dialog/dialog.css">
<script src="lib/codemirror.js"></script> <script src="lib/codemirror.js"></script>
<script src="addon/selection/active-line.js"></script>
<script src="addon/dialog/dialog.js"></script> <script src="addon/dialog/dialog.js"></script>
<script src="addon/search/searchcursor.js"></script> <script src="addon/search/searchcursor.js"></script>
<script src="mode/markdown/markdown.js"></script> <script src="mode/markdown/markdown.js"></script>
@ -19,6 +20,8 @@
.CodeMirror { .CodeMirror {
border: 1px solid #eee; border: 1px solid #eee;
height: auto; height: auto;
border-top: 1px solid black;
border-bottom: 1px solid black;
} }
</style> </style>
</head> </head>
@ -37,7 +40,8 @@
matchBrackets: true, matchBrackets: true,
showCursorWhenSelecting: true, showCursorWhenSelecting: true,
viewportMargin: Infinity, viewportMargin: Infinity,
tabSize: 4 tabSize: 4,
styleActiveLine: true
}); });
// Add my .vimrc stuff. // Add my .vimrc stuff.
CodeMirror.Vim.map('jj', '<Esc>', 'insert') CodeMirror.Vim.map('jj', '<Esc>', 'insert')