From 9df0202a0081aa74181e36f4c0fa52ae5f06e83b Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Mon, 5 Mar 2018 06:59:03 -0500 Subject: [PATCH] [codemirror] add active line addon --- src/1p-filters.html | 3 ++- src/asset-viewer.html | 3 ++- src/css/codemirror.css | 1 - src/js/1p-filters.js | 1 + src/js/asset-viewer.js | 3 ++- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/1p-filters.html b/src/1p-filters.html index 67dc2a9ea..b96ab96bb 100644 --- a/src/1p-filters.html +++ b/src/1p-filters.html @@ -33,9 +33,10 @@ - + + diff --git a/src/asset-viewer.html b/src/asset-viewer.html index b0eeabf49..eed7140ac 100644 --- a/src/asset-viewer.html +++ b/src/asset-viewer.html @@ -26,9 +26,10 @@ body { - + + diff --git a/src/css/codemirror.css b/src/css/codemirror.css index 2c4bede36..6c92a2dab 100644 --- a/src/css/codemirror.css +++ b/src/css/codemirror.css @@ -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; diff --git a/src/js/1p-filters.js b/src/js/1p-filters.js index 8e709f955..fc96d595a 100644 --- a/src/js/1p-filters.js +++ b/src/js/1p-filters.js @@ -38,6 +38,7 @@ var cmEditor = new CodeMirror( autofocus: true, lineNumbers: true, lineWrapping: true, + styleActiveLine: true } ); diff --git a/src/js/asset-viewer.js b/src/js/asset-viewer.js index a10502867..70615291d 100644 --- a/src/js/asset-viewer.js +++ b/src/js/asset-viewer.js @@ -48,7 +48,8 @@ autofocus: true, lineNumbers: true, lineWrapping: true, - readOnly: true + readOnly: true, + styleActiveLine: true } );