forked from luwes/craft-codemirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
45 lines (42 loc) · 1.07 KB
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* CodeMirror plugin for Craft CMS 3.x
*
* Add the awesome in-browser code editor CodeMirror as a field type.
*
* @link https://wesleyluyten.com
* @copyright Copyright (c) 2017 Wesley Luyten
*/
use yii\web\JsExpression;
/**
* CodeMirror config.php
*
* Completely optional configuration settings for CodeMirror if you want to customize some
* of its more esoteric behavior, or just want specific control over things.
*
* Don't edit this file, instead copy it to 'craft/config' as 'codemirror.php' and make
* your changes there.
*
* Once copied to 'craft/config', this file will be multi-environment aware as well, so you can
* have different settings groups for each environment, just as you do for 'general.php'
*/
return [
"jsOptions" => [
"theme" => "default",
"mode" => "gfm",
"lineNumbers" => true,
"lineWrapping" => true,
"viewportMargin" => new JsExpression('Infinity'),
],
"modes" => [
"xml",
"htmlmixed",
"javascript",
"css",
"markdown",
"gfm",
],
"addons" => [
"mode/overlay", // needed for gfm (github flavored) mode
]
];