From e2f63a1d3bca3ad1e5b769a0f12506cf3ed5b5c7 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 23 Apr 2016 15:13:07 +0100 Subject: [PATCH] 5 x settings controlled from JS vars --- editor.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/editor.php b/editor.php index 8be2285..2a22d2e 100644 --- a/editor.php +++ b/editor.php @@ -228,7 +228,7 @@ function createNewCMInstance(num) { // Define our CodeMirror options var cMOptions = { mode: "application/x-httpd-php", - lineNumbers: true, + lineNumbers: top.ICEcoder.lineNumbers, gutters: ["CodeMirror-foldgutter","CodeMirror-lint-markers","CodeMirror-linenumbers"], foldGutter: {gutter: "CodeMirror-foldgutter"}, foldOptions: {minFoldSize: 1}, @@ -236,12 +236,12 @@ function createNewCMInstance(num) { indentWithTabs: top.ICEcoder.indentWithTabs, indentUnit: top.ICEcoder.indentSize, tabSize: top.ICEcoder.indentSize, - matchBrackets: true, + matchBrackets: top.ICEcoder.matchBrackets, electricChars: false, - autoCloseTags: true, - autoCloseBrackets: true, + autoCloseTags: top.ICEcoder.autoCloseTags, + autoCloseBrackets: top.ICEcoder.autoCloseBrackets, highlightSelectionMatches: true, - showTrailingSpace: true, + showTrailingSpace: top.ICEcoder.showTrailingSpace, lint: false, keyMap: "ICEcoder" };