| ... | ... |
@@ -2,11 +2,19 @@ |
| 2 | 2 |
# Author: Brandon Mathis http://brandonmathis.com |
| 3 | 3 |
# Description: Write codeblocks with semantic HTML5 <figure> and <figcaption> elements and optional syntax highlighting — all with a simple, intuitive interface. |
| 4 | 4 |
# |
| 5 |
-# Syntax: {% codeblock [title] [url] [link text] %}
|
|
| 5 |
+# Syntax: |
|
| 6 |
+# {% codeblock [title] [url] [link text] %}
|
|
| 7 |
+# code snippet |
|
| 8 |
+# {% endcodeblock %}
|
|
| 6 | 9 |
# |
| 7 | 10 |
# For syntax highlighting, put a file extension somewhere in the title. examples: |
| 8 | 11 |
# {% codeblock file.sh %}
|
| 12 |
+# code snippet |
|
| 13 |
+# {% endcodeblock %}
|
|
| 14 |
+# |
|
| 9 | 15 |
# {% codeblock Time to be Awesome! (awesome.rb) %}
|
| 16 |
+# code snippet |
|
| 17 |
+# {% endcodeblock %}
|
|
| 10 | 18 |
# |
| 11 | 19 |
# Example: |
| 12 | 20 |
# |