From 0ef645b0f88c914b84c991835880905e50bce7d2 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 19 Jun 2016 23:31:32 -0700 Subject: [PATCH] Highlight active line --- app/components/base/Editor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/components/base/Editor.js b/app/components/base/Editor.js index 925218beb..7be4bcbd7 100644 --- a/app/components/base/Editor.js +++ b/app/components/base/Editor.js @@ -20,6 +20,8 @@ import 'codemirror/addon/fold/xml-fold' import 'codemirror/addon/search/search' import 'codemirror/addon/search/searchcursor' +import 'codemirror/addon/selection/active-line' + import 'codemirror/addon/search/matchesonscrollbar' import 'codemirror/addon/search/matchesonscrollbar.css' @@ -48,11 +50,12 @@ const BASE_CODEMIRROR_OPTIONS = { placeholder: 'Start Typing...', foldGutter: true, height: 'auto', - lineWrapping: false, + lineWrapping: true, lint: true, tabSize: 4, indentUnit: 4, indentWithTabs: false, + styleActiveLine: true, gutters: [ 'CodeMirror-linenumbers', 'CodeMirror-foldgutter',