Skip to content

Instantly share code, notes, and snippets.

@RaymondBalise
Last active February 15, 2024 15:34
Show Gist options
  • Save RaymondBalise/3ed5c1dfabc5ca1514462b57cecb5666 to your computer and use it in GitHub Desktop.
Save RaymondBalise/3ed5c1dfabc5ca1514462b57cecb5666 to your computer and use it in GitHub Desktop.
There are Markdown code snippets for the RStudio IDE. Click the Tools > Global Options... menu; then click the code Code windowpane; then click the Edit Snippets... button; then click the Markdown windowpane; go to the bottom and paste this gist.
# 2024-02-15
# quarto callout note
snippet con
:::{.callout-note appearance=minimal}
${1:text}
:::
# quarto callout tip
snippet cot
:::{.callout-tip appearance=simple}
${1:text}
:::
# quarto callout warning
snippet cow
:::{.callout-warning appearance=simple}
${1:text}
:::
# quarto two-column display
snippet two
:::: {.columns}
::: {.column width="50%"}
${1:left-content}
:::
::: {.column width="50%"}
${2:right}
:::
::::
# quarto two columns with centered text
snippet twocenter
:::: {.columns style='display: flex !important; height: 40%;'}
::: {.column style='display: flex; justify-content: center; align-items: center; text-align: left;'}
${1:left-content}
:::
::: {.column style='display: flex; justify-content: center; align-items: center; text-align: left;'}
${2:right}
:::
::::
# quarto slide speaker note
snippet note
::: {.notes}
${1:note}
:::
# quarto new vs. old code
snippet no
```{r}
${0:code}
```
```{r}
#| eval: false
#| code-fold: true
#| code-summary: "Original code"
```
# quarto footer
snippet footer
::: {.footer style="font-size: .2em;"}
${0}
:::
# quarto image
snippet image
::: {}
![](images/${0}){.nostretch fig-align="center" width=50%}
:::
@RaymondBalise
Copy link
Author

RaymondBalise commented Aug 23, 2022

2022-08-23: Add quarto snips

@RaymondBalise
Copy link
Author

RaymondBalise commented Sep 2, 2022

2022-09-02: Add two column snip

@RaymondBalise
Copy link
Author

2022-09-03: Added cot snip and instructions

@RaymondBalise
Copy link
Author

2022-09-09: Add speaker note for a slide

@RaymondBalise
Copy link
Author

2024-02-15 Added twocenter, no, footer, image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment