Fix typo in NEWS.md for version 0.13 [ci skip]
This is an infrastructure R package for syntax highlighting. It supports LaTeX and HTML output. Not surprisingly, it works best with R code. It attaches markups onto source code, e.g., it turns
a <- 1 # something
into LaTeX code
\hldefa\hlkwb<−\hlnum1\hlcom#something\hldef{a} \hlkwb{<-} \hlnum{1} \hlcom{\# something}\hldefa\hlkwb<−\hlnum1\hlcom#something
or HTML code
<span class="hl def">a</span> <span class="hl kwb"><-</span> <span class="hl num">1</span> <span class="hl com"># something</span>
via
library(highr) hi_latex("a <- 1 # something") hi_html("a <- 1 # something") # or hilight(code, format = "latex"/"html")
This package also has a wrapper function, hi_andre(), for Andre Simon’s Highlight package.
hi_andre()
There are a few package Markdown vignettes in this package:
browseVignettes(package = "highr")
To install the development version here, use
install.packages('highr', repos = 'https://yihui.r-universe.dev')
This package is licensed under GPL, and was originally designed for serving other packages such as knitr.
提供代码和文本的语法高亮辅助功能。
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
highr
This is an infrastructure R package for syntax highlighting. It supports LaTeX and HTML output. Not surprisingly, it works best with R code. It attaches markups onto source code, e.g., it turns
into LaTeX code
\hldefa\hlkwb<−\hlnum1\hlcom#something
or HTML code
via
This package also has a wrapper function,
hi_andre(), for Andre Simon’s Highlight package.There are a few package Markdown vignettes in this package:
To install the development version here, use
This package is licensed under GPL, and was originally designed for serving other packages such as knitr.