View source: R/mono_highlight.R
mono_highlight | R Documentation |
Returns text with monospaced and colour html formatting.
mono_highlight(t1, text, t3, colour = "#FF4500")
t1 |
Text that will precede coloured text. Still monospaced. |
text |
Text that will be highlighted with colour, and monospaced. |
t3 |
Text that will follow coloured text. Still monospaced. |
colour |
Colour of the highlighting. Hex code required i.e. #FF4500 |
Returns text that is surrounded with the <tt> html flag for monospaced font, but also additional <strong> and <span style='colour:'#colour'> that will colour the text to emphasise it. Requires special characters like dashes "-" to be be double-escaped "\-" to be parsed correctly.
mono_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.