aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAaron Steele <eightysteele@gmail.com>2013-01-21 17:53:39 -0800
committerAaron Steele <eightysteele@gmail.com>2013-01-21 17:53:39 -0800
commit1aa66aa46951e8a612e6bbb7ebac6370a9aa875f (patch)
tree4af0df279946b5cb824b0da60b1ec2c45b31ad66 /README.md
parent2f48c27201801c40b82608cb6566255855d745f4 (diff)
downloadfreenode-live-2017-presentation-1aa66aa46951e8a612e6bbb7ebac6370a9aa875f.tar
freenode-live-2017-presentation-1aa66aa46951e8a612e6bbb7ebac6370a9aa875f.tar.gz
Add Clojure to highlight.js, add code highlight example to README.
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/README.md b/README.md
index 92ca02b..0b6d401 100644
--- a/README.md
+++ b/README.md
@@ -49,6 +49,36 @@ This is based on [data-markdown](https://gist.github.com/1343518) from [Paul Iri
</section>
```
+### Code syntax higlighting
+
+By default, Reveal is configured with [highlight.js](http://softwaremaniacs.org/soft/highlight/en/) for code syntax highlighting. For example, a section like this:
+
+```html
+<section>
+ <p align="left">
+ <code class="clojure">
+ <pre>
+(def lazy-fib
+ (concat
+ [0 1]
+ ((fn rfib [a b]
+ (lazy-cons (+ a b) (rfib b (+ a b)))) 0 1)))
+ </pre>
+ </code>
+ </p>
+</section>
+
+```
+
+Will render like this:
+
+```clojure
+(def lazy-fib
+ (concat
+ [0 1]
+ ((fn rfib [a b]
+ (lazy-cons (+ a b) (rfib b (+ a b)))) 0 1)))
+```
### Configuration