Web Component: j-CodeMirror
j-CodeMirror
- supports multiple cursors (
shift + cmd + arrow-down/up
) - supports finding selected text (
cmd + d
) - supports custom scrollbars
Configuration:
type
{String}
type for syntax highlighting (default:htmlmixed
)required
{Boolean}
enables "required" (default:false
)linenumbers
{Boolean}
shows line numbers (default:false
)icon
{String}
icon for label withoutfa-
e.g.home
,cog
, etc.height
{Number}
control height (default:200
px)label
{String}
label (default is HTML content)disabled
{Boolean}
disables this componenttabs
{Boolean}
enables indent with tabs (default:false
)trim
{Boolean}
performs auto-trim and removes empty begin/end lines (default:false
)parent
{String}
can set height by parent elementmargin
{Number}
a margin for heightminheight
{Number}
a minimal height forparent
option (default:200
)
Method:
component.insert('some text')
inserts a text to the current position of the cursor
Author
- Peter Širka petersirka@gmail.com
- License
Created
05. august 2015
Updated
15. january 2024
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com