Template:CodeExplorer

From Coder Merlin
Revision as of 10:08, 14 June 2021 by Chukwuemeka-tinashe (talk | contribs) (Created page with "<noinclude> Parameters: ;uniqueID: integer: id for editor, must be unique per page. REQUIRED. ;width: integer|string: percentage (as string, e.g. "100%" or integer size in pi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parameters:

uniqueID
integer: id for editor, must be unique per page. REQUIRED.
width
integer|string: percentage (as string, e.g. "100%" or integer size in pixels), null for no change (full width). DEFAULT: null
height
integer|string: percentage (as string, e.g. "100%" or integer size in pixels), null for no change (~10 lines). DEFAULT: null
lineNumbers
boolean: true to display line numbers. DEFAULT: true
theme
string: name of theme (which must be loaded via css). DEFAULT: vibrant-ink
readOnly
boolean: true if editing should be disabled. DEFAULT: false.
mode
string: language for highlighting (which must be loaded via js). REQUIRED.
initialCode
string: initial code to place in editor. DEFAULT: <empty>