Skip to contents

Names accepted after an opening code fence in markdown_box_grob. Includes both the built-in grammars and any added with register_highlighter.

Usage

available_highlighters()

Value

A character vector of language names, sorted.

Details

Several common aliases also work and are not listed here, among them py, sh, c++, yml, jl and tex. A fence naming anything else renders as plain monospace text, without a warning.

Examples

available_highlighters()
#>  [1] "bash"   "cpp"    "json"   "julia"  "latex"  "python" "r"      "sql"   
#>  [9] "stan"   "yaml"