mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-13 03:56:46 +01:00
5 x settings controlled from JS vars
This commit is contained in:
10
editor.php
10
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"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user