highlight_file: Highlight Syntax of a File

View source: R/highlighter.R

highlight_fileR 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


highlighter documentation built on Sept. 25, 2023, 5:08 p.m.