aboutsummaryrefslogtreecommitdiff
path: root/plugins/code_block.rb
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-08-01 17:35:33 -0400
committerBrandon Mathis <brandon@imathis.com>2011-08-01 17:35:44 -0400
commit7b52fb492ec003efbc0663fc5f8549bc4c6209b8 (patch)
tree93127328b26b2d71ae48c9dcd456c8f901b74a70 /plugins/code_block.rb
parent08dc63a95e071401d4724ca8c9b9270eaf843012 (diff)
downloadmy_new_personal_website-7b52fb492ec003efbc0663fc5f8549bc4c6209b8.tar.xz
my_new_personal_website-7b52fb492ec003efbc0663fc5f8549bc4c6209b8.zip
added yml alias for yaml code highlighting
Diffstat (limited to '')
-rw-r--r--plugins/code_block.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index 86708285..ff242aab 100644
--- a/plugins/code_block.rb
+++ b/plugins/code_block.rb
@@ -79,6 +79,7 @@ module Jekyll
if @filetype
@filetype = 'objc' if @filetype == 'm'
@filetype = 'perl' if @filetype == 'pl'
+ @filetype = 'yaml' if @filetype == 'yml'
source += " #{highlight(code, @filetype)}</figure></div>"
else
source += "<pre><code>" + code.lstrip.rstrip.gsub(/</,'&lt;') + "</code></pre></figure></div>"