Debian Codegraph @

man/hi_andre.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/highlight.R
3 \name{hi_andre}
4 \alias{hi_andre}
5 \title{A wrapper to Andre Simon's Highlight}
6 \usage{
7 hi_andre(code, language, format = "html")
8 }
9 \arguments{
10 \item{code}{a character string of the source code}
11
12 \item{language}{the input language (c, cpp, python, r, ...); see
13 \code{system('highlight -p')}}
14
15 \item{format}{the output format (html, latex, ...)}
16 }
17 \value{
18 A character string for the syntax highlighted code.
19 }
20 \description{
21 This function calls Highlight to syntax highlight a code fragment.
22 }
23 \examples{
24 \dontrun{
25 hi_andre("1+1", language = "R")
26 hi_andre("void main() {\nreturn(0)\n}", language = "c", format = "latex")
27 }
28 }
29 \references{
30 Andre Simon's Highlight package
31 \url{https://gitlab.com/saalen/highlight}.
32 }