html formatter

Share:

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)