User:Mifield/common/CodeEditor/config-example.js
$.codeEditor = $.extend( $.codeEditor, {
config: {
/* extended options */
hideScriptWarnings: false,
hideStylesheetWarnings: false,
hideConfidentialityWarning: false,
hideMaliciousCodeWarning: false,
hidePreviewTip: false,
hideCopyrightWarning: false,
hideScriptDocumentationNotice: false,
hidePurgeCacheTip: false,
hideSpecialChars: false,
hideAllExtras: true,
makeToolbarSticky: true,
/* editor options */
//? selectionStyle: "line", "text",
// highlightActiveLine: true, // default: true
// highlightSelectedWord: true, // default: true
// readOnly: false, // default: false
// cursorStyle options: "ace", "slim", "smooth", "wide"
cursorStyle: [ "smooth", "slim" ], // default: "ace"
// mergeUndoDeltas options: true, false, "always"
// mergeUndoDeltas: true,
// behavioursEnabled: true,
// wrapBehavioursEnabled: true, // default: (toolbar)
// this is needed if editor is inside scrollable page
autoScrollEditorIntoView: true, // default: false
// copy/cut the full line if selection is empty
copyWithEmptySelection: true, // default: false
// useSoftTabs: false, // default: false
navigateWithinSoftTabs: false, // default: false
// enableMultiselect: true, // default: true
// enableAutoIndent: true,
// enableKeyboardAccessibility: true,
/* extension-defined editor options */
// the following options require ext-language_tools.js
// enableBasicAutocompletion: true, // wiki default: true
enableLiveAutocompletion: true, // wiki default: false
// enableSnippets: true, // wiki default: true
// the following option requires ext-emmet.js and the emmet library
// enableEmmet: true,
// the following option requires ext-elastic_tabstops_lite.js
// useElasticTabstops: true,
/* renderer options */
// hScrollBarAlwaysVisible: false, // default: false
vScrollBarAlwaysVisible: true, // default: false
//? highlightGutterLine: true,
animatedScroll: true, // default: false
// showInvisibles: true, // default: (toolbar)
// showPrintMargin: true,
// printMarginColumn: 80, // default: 80
// printMargin: shortcut for showPrintMargin and printMarginColumn
// printMargin options: false, <number>
// printMargin: 80,
fadeFoldWidgets: true, // default: false
// showFoldWidgets: true, // default: true
// showLineNumbers: true, // default: true
// showGutter: true, // default: true
// displayIndentGuides: true, // default: true
// highlightIndentGuides: true,
// fontSize options: <number>, "<font-size>"
fontSize: 14, // default: 12(px)
// fontFamily options: "<font-family>"
// fontFamily: "",
// resize editor based on the contents of the editor
// until the number of lines reaches maxLines
// maxLines, minLines: <number>
maxLines: +Infinity,
minLines: 20,
// number of page sizes to scroll after document end
// scrollPastEnd options: <number>, true, false
// (typical values are 0, 0.5, and 1)
scrollPastEnd: 0.5, // default: 0
fixedWidthGutter: true, // default: false
theme: "ace/theme/dawn", // default: "ace/theme/textmate"
// customScrollbar: true, // default: false
hasCssTransforms: true, // default: false?
// maxPixelHeight: <number>
maxPixelHeight: window.visualViewport.height,
useSvgGutterIcons: true, // default: ?
/* mouseHandler options */
// scrollSpeed: <number>
// scrollSpeed: 0,
// dragDelay: <number>
// dragDelay: 0,
// dragEnabled: true, // default: true
// focusTimout: <number>
// focusTimout: 0,
// tooltipFollowsMouse: true,
/* sesion options */
// firstLineNumber: 1, // default: 1
// overwrite: false, // default: false
// newLineMode options: "auto", "unix", "windows"
// newLineMode: "unix",
// useWorker: true,
// useSoftTabs: false,
// indentedSoftWrap: true,
// navigateWithinSoftTabs: false,
// tabSize: <number>
// tabSize: 4,
// wrap options: "off", "free", "printmargin",
// <boolean>, <number>
// wrap: "printmargin", // default: (toolbar)
// wrapMethod options: "code", "text", "auto"
// wrapMethod: "auto",
// foldStyle options: "markbegin", "markbeginend", "manual"
foldStyle: "markbeginend", // default: markbegin?
// mode: path to a mode, such as "ace/mode/text"
// mode: "ace/mode/text",
}
} );
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.