@php-script/editor
v0.1.2
Published
Monaco based <php-script-editor> web component for php-script v2, configured by the MonarchLanguageDefinitionService.
Maintainers
Readme
@php-script/editor
Documentation: https://php-script.github.io/php-script-editor/packages/editor.html
Monaco-based <php-script-editor> web component for PHP Script v2. Highlighting and completions come from your Engine; saving, lint markers, themes and form association are built in.
Installation
npm i @php-script/editor monaco-editorUsage
import '@php-script/editor';<php-script-editor
config-url="/php-script/config"
save-url="/scripts"
lint-url="/scripts/lint"
value='echo "Hello";'
></php-script-editor>See the documentation for all props, events and methods, and Server and language config for the endpoints.
