PluginProbe
Code Snippets / 3.2.1
Code Snippets v3.2.1
3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 3.0.1 All 64 releases
code-snippets / build / js / editor.ts

editor.ts in Code Snippets 3.2.1, at build/js/editor.ts

15 lines 403 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { defineMode, getMode, EditorConfiguration, ModeSpec } from 'codemirror'
2 import './php-lint'
3
4 type ModeSpecOptions = {
5 startOpen: boolean
6 }
7
8 /** Define a new mode which starts the phpmixed mode in php mode instead of html mode */
9 defineMode('php-snippet', (config: EditorConfiguration) =>
10 getMode(config, <ModeSpec<ModeSpecOptions>> {
11 name: 'application/x-httpd-php',
12 startOpen: true
13 })
14 )
15