Update the styling or mode of an aceEditor component.
updateAceEditor(
session,
editorId,
value,
theme,
readOnly,
mode,
fontSize,
showLineNumbers,
wordWrap,
useSoftTabs,
tabSize,
showInvisibles,
showPrintMargin,
border = c("normal", "alert", "flash"),
autoComplete = c("disabled", "enabled", "live"),
autoCompleters = c("snippet", "text", "keyword", "static", "rlang"),
autoCompleteList = NULL
)
The Shiny session to whom the editor belongs
The ID associated with this element
The initial text to be contained in the editor.
The Ace theme
to be used by the editor. The theme
in Ace determines the styling and coloring of the editor. Use
getAceThemes
to enumerate all the themes available.
If set to TRUE
, Ace will disable client-side editing.
If FALSE
(the default), it will enable editing.
The Ace mode
to be used by the editor. The mode
in Ace is often the programming or markup language that you're using and
determines things like syntax highlighting and code folding. Use the
getAceModes
function to enumerate all the modes available.
If set, will update the font size (in px) used in the editor. Should be an integer.
If set to TRUE
, Ace will show line numbers.
If set to TRUE
, Ace will enable word wrapping.
Default value is FALSE
.
Replace tabs by spaces. Default value is TRUE
Set tab size. Default value is 4
Show invisible characters (e.g., spaces, tabs, newline characters). Default value is FALSE
Show print margin. Default value is True
Set the border
'normal', 'alert', or 'flash'.
Enable/Disable code completion. See aceEditor
for details.
Character vector of completers to enable. If set to NULL
,
all completers will be disabled.
If set to NULL
, existing static completions
list will be unset. See aceEditor
for details.