View source: R/widget-textarea.R
| r_highlighter | R Documentation |
Returns a viewport-first tokenizer for text_area(). It highlights common
R keywords, strings, comments, numeric constants, operators, and function
names. It uses tolerant regular expressions and accepts incomplete syntax.
Each line produces grapheme-indexed spans with start, end, and token.
r_highlighter()
A function (lines, state = NULL) suitable for text_area().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.