CodeMirror is a versatile text editor implemented in JavaScript for the browser.
It is specialized for editing code, and comes with a number of language modes
and addons that implement more advanced editing functionality. This module
provides a SilverStripe Field
CodeMirrorFormField::create('Name', 'Name')
->setCodeLanguage('sql')
->setCodeTheme('dracula')
->setCodeMode('text/x-sql')
->setCodeOptions([
'lineNumbers' => true,
])
composer require education/silverstripe-codemirrorfield
For the supported languages modes, vist: https://codemirror.net/mode/
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem