Permalink
Browse files

Add code highlight on the single page view.

  • Loading branch information...
1 parent 53986fa commit 8b9f298783f701873d9e6476955a1a9d735a2ec1 @goncalossilva goncalossilva committed Mar 5, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/showoff.rb
View
@@ -461,6 +461,7 @@ def slides(static=false)
def onepage(static=false)
@slides = get_slides_html(static)
+ @languages = @slides.scan(/<pre class=".*(?!sh_sourceCode)(sh_[\w-]+).*"/).uniq.map{ |w| "/sh_lang/#{w[0]}.min.js"}
erb :onepage
end

0 comments on commit 8b9f298

Please sign in to comment.