Description Usage Arguments Note Examples
View source: R/aceDiffEditor.R
Open the Ace diff editor.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
file1, file2 |
paths to files |
mode |
the language of the files; if |
theme |
the theme of the editor; if |
fontSize |
font size |
tabSize |
number of spaces for the indentation (usually |
autoCompletion |
logical, whether to enable the auto completion |
snippets |
logical, whether to enable the snippets (for example, there
is a snippet for |
width, height |
dimensions; the default values are nice for usage in the RStudio viewer pane |
elementId |
a HTML id for the container; this is useless for common usage |
The diff editor does not correctly reacts when one resizes the RStudio viewer pane. You have to resize it before opening the diff editor.
1 2 | file <- system.file("htmlwidgets", "aceEditor.css", package = "aceEditor")
aceDiffEditor(file, file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.