formatter_html: html formatter

Description Usage Arguments Value Author(s) See Also Examples

View source: R/renderer.R

Description

Wraps tokens into span tags with the class corresponding to the style

Usage

1
formatter_html(tokens, styles, ...)

Arguments

tokens

tokens to wrap

styles

styles to give to the tokens

...

ignored

Value

A vector of span tags

Author(s)

Romain Francois <romain@r-enthusiasts.com>

See Also

renderer_html

Examples

1
2
3
4
5
## Not run: 
f <- formatter_html( )
f( "hello world", "blue")

## End(Not run)

halpo/highlight documentation built on May 17, 2019, 2:26 p.m.