> # explicit package
> cat(highlight("MASS::addterm()"))
<span><span class='nf'>MASS</span><span class='nf'>::</span><span class='nf'><a href='https://rdrr.io/pkg/MASS/man/addterm.html'>addterm</a></span><span class='o'>(</span><span class='o'>)</span></span>

> cat(highlight("MASS::addterm"))
<span><span class='nf'>MASS</span><span class='nf'>::</span><span class='nv'><a href='https://rdrr.io/pkg/MASS/man/addterm.html'>addterm</a></span></span>

> cat(highlight("?MASS::addterm"))
<span><span class='o'>?</span><span class='nf'>MASS</span><span class='nf'>::</span><span class='nv'><a href='https://rdrr.io/pkg/MASS/man/addterm.html'>addterm</a></span></span>

> # implicit package
> cat(highlight("library(MASS)"))
<span><span class='kr'><a href='https://rdrr.io/r/base/library.html'>library</a></span><span class='o'>(</span><span class='nv'><a href='http://www.stats.ox.ac.uk/pub/MASS4/'>MASS</a></span><span class='o'>)</span></span>

> cat(highlight("addterm()"))
<span><span class='nf'><a href='https://rdrr.io/pkg/MASS/man/addterm.html'>addterm</a></span><span class='o'>(</span><span class='o'>)</span></span>

> cat(highlight("median()"))
<span><span class='nf'><a href='https://rdrr.io/r/stats/median.html'>median</a></span><span class='o'>(</span><span class='o'>)</span></span>

> # local package
> cat(highlight("test::foo()"))
<span><span class='nf'>test</span><span class='nf'>::</span><span class='nf'><a href='bar.html'>foo</a></span><span class='o'>(</span><span class='o'>)</span></span>

> # operators / special syntax
> cat(highlight("1 + 2 * 3"))
<span><span class='m'>1</span> <span class='o'>+</span> <span class='m'>2</span> <span class='o'>*</span> <span class='m'>3</span></span>

> cat(highlight("x %in% y"))
<span><span class='nv'>x</span> <span class='o'><a href='https://rdrr.io/r/base/match.html'>%in%</a></span> <span class='nv'>y</span></span>

> cat(highlight("if (FALSE) 1"))
<span><span class='kr'>if</span> <span class='o'>(</span><span class='kc'>FALSE</span><span class='o'>)</span> <span class='m'>1</span></span>

> cat(highlight("f <- function(x = 'a') {}"))
<span><span class='nv'>f</span> <span class='o'>&lt;-</span> <span class='kr'>function</span><span class='o'>(</span><span class='nv'>x</span> <span class='o'>=</span> <span class='s'>'a'</span><span class='o'>)</span> <span class='o'>{</span><span class='o'>}</span></span>

> # ansi escapes + unicode
> cat(highlight("# \033[34mblue\033[39m"))
<span><span class='c'># <span style='color: #0000BB;'>blue</span></span></span>

