extra_styles | R Documentation |
Adds CSS extras to your slides. You can select which extras you wish to add to your slides.
use_extra_styles(
hover_code_line = TRUE,
mute_unhighlighted_code = TRUE,
bundle_id = NULL
)
html_dependency_extra_styles(
hover_code_line = TRUE,
mute_unhighlighted_code = TRUE,
bundle_id = NULL
)
hover_code_line |
Adds a hover effect for code chunks in your slides. Adds a floating pointer to the hovered line and makes the line bold. |
mute_unhighlighted_code |
On code chunks with highlights (added with
line-ending |
bundle_id |
Make the CSS bundle unique. Use this if your slides share a common resource directory and you want to include different CSS extras in different slides. |
An htmltools::htmlDependency()
with the selected additional styles.
use_extra_styles()
: Add the extra CSS styles to your slides
html_dependency_extra_styles()
: Returns an htmltools::htmlDependency()
with the
extra styles dependencies. Most users will want to use use_extra_styles()
.
use_extra_styles()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.