XYZ File Manager
Current Path:
/var/www/wordpress/wp-content/plugins/code-snippets/js
var
/
www
/
wordpress
/
wp-content
/
plugins
/
code-snippets
/
js
/
📁
..
📁
components
📄
edit.tsx
(358 B)
📄
editor.ts
(529 B)
📁
hooks
📄
import.tsx
(355 B)
📄
manage.ts
(213 B)
📄
mce.ts
(4.45 KB)
📄
prism.ts
(899 B)
📁
services
📄
settings.ts
(175 B)
📁
types
📁
utils
Editing: editor.ts
import { defineMode, getMode, registerHelper } from 'codemirror' import { Linter } from './utils/Linter' import type { EditorConfiguration, ModeSpec } from 'codemirror' interface ModeSpecOptions { startOpen: boolean } const mode: ModeSpec<ModeSpecOptions> = { name: 'application/x-httpd-php', startOpen: true } defineMode('php-snippet', (config: EditorConfiguration) => getMode(config, mode)) registerHelper('lint', 'php', (text: string) => { const linter = new Linter(text) linter.lint() return linter.annotations })
Upload File
Create Folder