Skip to content

Commit 1b6579c

Browse files
committed
show all file icon examples
1 parent 90f281a commit 1b6579c

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ Adding a `::: {.codewindow}` fenced div around any code chunk will turn the outp
1717

1818
Adding the one of the following classes adds an icon in the file tab. File an issue to have more icons added to this list
1919

20+
- `.r`
21+
- `.py`
22+
- `.js`
23+
- `.quarto`
24+
- `.html`
25+
- `.css`
2026
- `.sass`
2127

2228
The `width` argument can be used directly in the code fence.

example.qmd

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,60 @@ styles.scss
8787
```
8888
:::
8989

90+
## File icons
91+
92+
::: columns
93+
::: {.column width="50%"}
94+
95+
::: {.codewindow .r}
96+
script.R
97+
```{sass}
98+
```
99+
:::
100+
101+
::: {.codewindow .python}
102+
script.py
103+
```{sass}
104+
```
105+
:::
106+
107+
::: {.codewindow .js}
108+
script.js
109+
```{sass}
110+
```
111+
:::
112+
113+
:::
114+
115+
::: {.column width="50%"}
116+
117+
::: {.codewindow .quarto}
118+
index.qmd
119+
```{sass}
120+
```
121+
:::
122+
123+
::: {.codewindow .html}
124+
index.html
125+
```{sass}
126+
```
127+
:::
128+
129+
::: {.codewindow .css}
130+
styles.css
131+
```{sass}
132+
```
133+
:::
134+
135+
::: {.codewindow .sass}
136+
styles.sass
137+
```{sass}
138+
```
139+
:::
140+
141+
:::
142+
:::
143+
90144
## Setting width
91145

92146
The `width` argument is natively supported, so the width can be set like so:

0 commit comments

Comments
 (0)