Bladeren bron

Merge branch 'feature/highlightjs-clojure' of https://github.com/eightysteele/reveal.js

hakimel 11 jaren geleden
bovenliggende
commit
3f140ef50e
2 gewijzigde bestanden met toevoegingen van 30 en 5 verwijderingen
  1. 30 0
      README.md
  2. 0 5
      plugin/highlight/highlight.js

+ 30 - 0
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
 

File diff suppressed because it is too large
+ 0 - 5
plugin/highlight/highlight.js


Some files were not shown because too many files changed in this diff