Skip to content

Commit

Permalink
Code section added in the README.md (#414). (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artmorse committed Aug 15, 2022
1 parent d8ca9db commit 265ac45
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ docker run --rm -p 1948:1948 -p 35729:35729 -v <path-to-your-slides>:/slides web
- [Docker][6]
- [Features][7]
- [Markdown][8]
- [Code Section][59]
- [Theme][9]
- [Highlight Theme][10]
- [Custom Slide Separators][11]
Expand Down Expand Up @@ -87,6 +88,32 @@ dashes surrounded by two blank lines (`\n---\n`). Example:
Note: speaker notes FTW!
```

#### Code section

##### Syntax highlighting

~~~mkdn
```js
console.log('Hello world!')
```
~~~

##### Highlight some lines

You can highlight one line, multiple lines or both.

~~~mkdn
```python [1|3-6]
n = 0
while n < 10:
if n % 2 == 0:
print(f"{n} is even")
else:
print(f"{n} is odd")
n += 1
```
~~~

### Theme

Override theme (default: `black`):
Expand Down Expand Up @@ -498,3 +525,4 @@ Many thanks to all [contributors][56]!
[56]: https://github.com/webpro/reveal-md/graphs/contributors
[57]: http://webpro.mit-license.org
[58]: https://github.com/webpro/reveal-md/issues/102#issuecomment-692494366
[59]: #code-section

0 comments on commit 265ac45

Please sign in to comment.