Description Usage Arguments Value Note Examples
Prettify Java code, JSON code or Ruby code.
1 | prettify_FCA(contents = NA, language = NA)
|
contents |
the code to be prettified; there are three possibilities for
this argument:
|
language |
the language of the code, such as |
The pretty code in a character string.
This function requires a connection to Internet.
1 2 3 4 5 6 7 8 9 10 | library(prettifyAddins)
code <- c(
"{a: [0,1, 2 ],",
"f: function( x){return x+1}}" # this function will be prettified too
)
## Not run:
cat(prettify_FCA(code, "json"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.