Skip to contents

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