Code snippet
String specifying the mode to load such as
ace/mode/javascript
or, a mode loaded from /ace/mode
(use 'ServerSideHiglighter.getMode').
String specifying the theme to load such as
ace/theme/twilight
or, a theme loaded from /ace/theme
.
A number indicating the first line number. Defaults to 1.
Specifies whether or not to disable the gutter.
true
disables the gutter, false
enables the gutter. Defaults to false
.
Optional
callback: FunctionWhen specifying the mode or theme as a string,
this method has no return value and you must specify a callback function. The
callback will receive the rendered object containing the properties html
and css
.
An object containing the properties html
and css
.
Transforms a given input code snippet into HTML using the given mode
Code snippet
Mode loaded from /ace/mode (use 'ServerSideHiglighter.getMode')
An object containing: html, css
Generated using TypeDoc
Transforms a given input code snippet into HTML using the given mode