aboutsummaryrefslogtreecommitdiff
path: root/_posts
diff options
context:
space:
mode:
authorGravatar Barry Clark <barry@barryclark.co> 2014-02-18 20:26:49 -0500
committerGravatar Barry Clark <barry@barryclark.co> 2014-02-18 20:26:49 -0500
commitd1cd52c7bed098a620e8a70f3b03ee50b7d3740a (patch)
tree57a6c8bf23f4dcda0fe3e70a2b4e6afb9195aef3 /_posts
parentb1838427fc2efd7427d0229572c78d1df3333812 (diff)
downloadkompetenzbolzen.github.io-d1cd52c7bed098a620e8a70f3b03ee50b7d3740a.tar.gz
Syntax highlighting.
Diffstat (limited to '_posts')
-rw-r--r--_posts/2014-2-2-Markdown-Cheatsheet.md29
1 files changed, 15 insertions, 14 deletions
diff --git a/_posts/2014-2-2-Markdown-Cheatsheet.md b/_posts/2014-2-2-Markdown-Cheatsheet.md
index 59c70ef..cf23b79 100644
--- a/_posts/2014-2-2-Markdown-Cheatsheet.md
+++ b/_posts/2014-2-2-Markdown-Cheatsheet.md
@@ -22,7 +22,7 @@ An image, located within /images
- alternative syntax 1
+ alternative syntax 2
- an indented list item
-
+
1. An
2. ordered
3. list
@@ -36,20 +36,21 @@ Inline markup styles:
> Blockquote
>> Nested Blockquote
-Code:
-
- // Code is just text indented a bit
- which(is_easy) to_remember();
-
-~~~
-
-// Markdown extra adds un-indented code blocks too
-
-if (this_is_more_code == true && !indented) {
- // tild wrapped code blocks, also not indented
-}
+Syntax highlighting can be used by wrapping your code in a liquid tag like so:
+
+{{ "{% highlight javascript " }}%}
+/* Some pointless Javascript */
+var rawr = ["r", "a", "w", "r"];
+{{ "{% endhighlight " }}%}
+
+creates...
+
+{% highlight javascript %}
-~~~
+/* Some pointless Javascript */
+var rawr = ["r", "a", "w", "r"];
+
+{% endhighlight %}
Use two trailing spaces
on the right