2020-12-31 00:46:37 +13:00
|
|
|
import CodeMirror from "codemirror"
|
|
|
|
import "codemirror/lib/codemirror.css"
|
2021-10-09 00:06:52 +13:00
|
|
|
|
|
|
|
// Modes
|
|
|
|
import "codemirror/mode/javascript/javascript"
|
2020-12-31 00:46:37 +13:00
|
|
|
import "codemirror/mode/sql/sql"
|
2021-01-08 02:13:46 +13:00
|
|
|
import "codemirror/mode/css/css"
|
2020-12-31 00:46:37 +13:00
|
|
|
import "codemirror/mode/handlebars/handlebars"
|
2021-10-09 00:06:52 +13:00
|
|
|
|
|
|
|
// Hints
|
2021-02-02 00:51:53 +13:00
|
|
|
import "codemirror/addon/hint/show-hint"
|
2021-10-09 00:06:52 +13:00
|
|
|
import "codemirror/addon/hint/show-hint.css"
|
|
|
|
|
|
|
|
// Theming
|
|
|
|
import "codemirror/theme/tomorrow-night-eighties.css"
|
|
|
|
|
|
|
|
// Functional addons
|
|
|
|
import "codemirror/addon/selection/active-line"
|
|
|
|
import "codemirror/addon/edit/closebrackets"
|
|
|
|
import "codemirror/addon/edit/matchbrackets"
|
2020-12-31 00:46:37 +13:00
|
|
|
|
|
|
|
export default CodeMirror
|