Difference between revisions of "Widget:CodeEditor"
From Coder Merlin
(Created page with "<noinclude> Parameters: ;uniqueID: integer: id for editor, must be unique per page ;lineNumbers: boolean: true to display line numbers ;theme: string: name of theme (which mus...") |
|||
Line 10: | Line 10: | ||
<includeonly> | <includeonly> | ||
<div> | <div> | ||
<textarea id="codeEditor<!--{$uniqueID|validate:int}--> | <textarea id="codeEditor<!--{$uniqueID|validate:int}-->" > | ||
<!--{$initialCode}--> | <!--{$initialCode}--> | ||
</textarea> | </textarea> |
Revision as of 20:21, 8 June 2021
Parameters:
- uniqueID
- integer: id for editor, must be unique per page
- lineNumbers
- boolean: true to display line numbers
- theme
- string: name of theme (which must be loaded via css)
- readOnly
- boolean: true if editing should be disabled
- initialCode
- string: initial code to place in editor