Skip to content

Latest commit

 

History

History

sifrr-code-editor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

sifrr-code-editor

Code editor in browser with easy customisations using CodeMirror.

Usage

After loading sifrr-code-editor JS file as instructed in main readme. Put this in your html file:

<sifrr-code-editor lang="javascript"></sifrr-code-editor>

Options

lang

lang attribute: language to use for highlighting syntax. Supported languages: All modes of codemirror - list, eg. html, css, javascript, etc.

value

value attribute: changing value attribute changes value of the editor.

You can get value of editor by property: element.value You can set value of editor by property: element.value = 'new value'

theme

theme attribute: codemirror theme to use for syntax highlighting. default: dracula

supported themes