View source: R/latex_highlight.R
latex_highlight | R Documentation |
Returns text with colour and monospaced LaTeX formatting..
latex_highlight(t1, text, t3, colour = "red")
t1 |
Text that will precede coloured text. Still monospaced. |
text |
Text that will be highlighted with colour. Still monospaced. |
t3 |
Text that will follow coloured text. Still monospaced. |
colour |
Colour of the highlighting. Default "red". |
Returns text that is surrounded with the \ textcolor and \ texttt wrappers for LaTeX formatting.
html_highlight("Code\\-looking text that ", "will contain red.", "")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.