Skip to content

Commit 3df0283

Browse files
committed
code snippets example
1 parent 8ae6ebf commit 3df0283

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

โ€ŽFonts.pngโ€Ž

121 KB
Loading

โ€Žindex.htmlโ€Ž

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
- JavaScript
1616

1717
usage:
18-
\
18+
\
1919
<meta charset="utf-8">
2020
<script src="sent.js">
2121
slide 1
22-
\
22+
\
2323
slide 2
24-
\
24+
\
2525
etc
2626
<\/script>
2727

@@ -55,7 +55,7 @@
5555
\
5656

5757
*You can have several paragraphs in one slide
58-
\
58+
\
5959
Use \\<space> for a blank line in a slide
6060

6161
# Use \ to escape \ or # or @
@@ -64,7 +64,7 @@
6464
=> Use backslash to kill behaviour of tags
6565

6666
UTF-8 support:
67-
\
67+
\
6868
๐Ÿ˜€๐Ÿ˜๐Ÿ˜‚๐Ÿ˜ƒ๐Ÿ˜„๐Ÿ˜…๐Ÿ˜†๐Ÿ˜‡๐Ÿ˜ˆ๐Ÿ˜‰๐Ÿ˜Š๐Ÿ˜‹๐Ÿ˜Œ๐Ÿ˜๐Ÿ˜Ž๐Ÿ˜
6969
๐Ÿ˜ ๐Ÿ˜ก๐Ÿ˜ข๐Ÿ˜ฃ๐Ÿ˜ฅ๐Ÿ˜ฆ๐Ÿ˜ง๐Ÿ˜จ๐Ÿ˜ฉ๐Ÿ˜ช๐Ÿ˜ซ๐Ÿ˜ญ๐Ÿ˜ฎ๐Ÿ˜ฏ๐Ÿ˜ฐ๐Ÿ˜ฑ
7070

@@ -78,4 +78,26 @@
7878
thanks.
7979
questions?
8080

81+
How to present code snippets?
82+
83+
Well, use either image or text :)
84+
85+
@Fonts.png
86+
87+
\@font-face {
88+
font-family: 'JetBrains Mono';
89+
src: url('./fonts/JetBrainsMono-Regular.ttf') format('truetype');
90+
font-weight: normal;
91+
font-style: normal;
92+
font-display: swap;
93+
}
94+
\
95+
\@font-face {
96+
font-family: 'Iosevka';
97+
src: url('./fonts/SGr-Iosevka-Regular.ttc') format('truetype');
98+
font-weight: normal;
99+
font-style: normal;
100+
font-display: swap;
101+
}
102+
81103
</script>

0 commit comments

Comments
ย (0)