highlight_file | R Documentation |
Highlights the content of a given file according to the source language, theme and plugins used.
highlight_file(file_path, language = NULL, plugins = NULL, theme = "default")
file_path |
The path to the file to be highlighted |
language |
The programming language chosen to be highlighted |
plugins |
Optional. A list of plugins to be used |
theme |
A character. Indicating which theme will be used |
An object of class highlighter
get_available_languages()
for available languages,
get_available_themes()
for available themes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.