The Rcode2html package offers syntax highlighting for R code, transforming plain script into visually appealing HTML-formatted code blocks with customizable color palettes.
It supports highlighting different elements of R syntax, such as functions, operators, numbers, comments, and others.