inst/doc/highr-custom.R

## -----------------------------------------------------------------------------
library(highr)
highr:::cmd_latex

## -----------------------------------------------------------------------------
m = highr:::cmd_latex
m[, 1] = sub('\\hl', '\\my', m[, 1], fixed = TRUE)
head(m)

## -----------------------------------------------------------------------------
hilight("x = 1+1  # a comment")  # default markup
hilight("x = 1+1  # a comment", markup = m)  # custom markup

Try the highr package in your browser

Any scripts or data that you put into this service are public.

highr documentation built on Dec. 28, 2022, 2:33 a.m.