File: hi_andre.Rd

package info (click to toggle)
r-cran-highr 0.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 176 kB
  • sloc: sh: 10; makefile: 7
file content (31 lines) | stat: -rw-r--r-- 793 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/highlight.R
\name{hi_andre}
\alias{hi_andre}
\title{A wrapper to Andre Simon's Highlight}
\usage{
hi_andre(code, language, format = "html")
}
\arguments{
\item{code}{a character string of the source code}

\item{language}{the input language (c, cpp, python, r, ...); see
\code{system('highlight -p')}}

\item{format}{the output format (html, latex, ...)}
}
\value{
A character string for the syntax highlighted code.
}
\description{
This function calls Highlight to syntax highlight a code fragment.
}
\examples{
\dontrun{
hi_andre("1+1", language = "R")
hi_andre("void main() {\\nreturn(0)\\n}", language = "c", format = "latex")
}
}
\references{
Andre Simon's Highlight package \url{http://www.andre-simon.de}.
}