highlight_file {highlighter} | R Documentation |
Highlight Syntax of a File
Description
Highlights the content of a given file according to the source language, theme and plugins used.
Usage
highlight_file(file_path, language = NULL, plugins = NULL, theme = "default")
Arguments
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 |
Value
An object of class highlighter
See Also
get_available_languages()
for available languages,
get_available_themes()
for available themes
[Package highlighter version 0.1 Index]