Learn R Programming

shinyAce (version 0.1.0)

aceEditor: Render Ace

Description

Render an Ace editor on an application page.

Usage

aceEditor(outputId, value, mode, theme, readOnly = FALSE,
    height = "400px", fontSize = 12)

Arguments

outputId
The ID associated with this element
value
The initial text to be contained in the editor.
mode
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
theme
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.
readOnly
If set to TRUE, Ace will disable client-side editing. If FALSE (the default), it will enable editing.
height
A number (which will be interpreted as a number of pixels) or any valid CSS dimension (such as "50%", "200px", or "auto").
fontSize
Defines the font size (in px) used in the editor and should be an integer. The default is 12.

Examples

Run this code
aceEditor("myEditor", "Initial text for editor here", mode="r",
   theme="ambiance")

Run the code above in your browser using DataLab