View source: R/prettifyCLANG.R
prettifyCLANG | R Documentation |
Prettify some C, C++ or Java code.
prettifyCLANG(contents = NA, language = NA, tabSize = NULL)
contents |
the code to be prettified; there are three possibilities for
this argument:
|
language |
the language of the code; when the contents is read from a file, this option is ignored, because the language is obtained from the extension of the file |
tabSize |
number of spaces of the indentation (usually |
The pretty code in a character string.
This function requires the command line utility clang-format
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.