Learn R Programming

highlight (version 0.3.2)

formatter_html: html formatter

Description

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

Usage

formatter_html(tokens, styles, ...)

Arguments

tokens
tokens to wrap
styles
styles to give to the tokens
...
ignored

Value

  • A vector of span tags

See Also

renderer_html

Examples

Run this code
f <- formatter_html( )
f( "hello world", "blue")

Run the code above in your browser using DataLab