updated syntax styling to have nice headers for code windows
This commit is contained in:
parent
42251dddca
commit
16aab4abb2
7 changed files with 36 additions and 25 deletions
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
blog_title: My Octopress Blog
|
||||
|
||||
twitter_user:
|
||||
tweet_count: 3
|
||||
show_replies: false
|
||||
|
||||
delicious_user:
|
||||
delicious_count: 3
|
||||
|
||||
full_url:
|
||||
disqus_short_name:
|
||||
|
||||
google_custom_search_id:
|
||||
google_analytics_tracking_id:
|
||||
|
||||
---
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
blog_title: My Octopress Blog
|
||||
author:
|
||||
|
||||
twitter_user:
|
||||
twitter_user: imathis
|
||||
tweet_count: 3
|
||||
show_replies: false
|
||||
|
||||
|
|
|
|||
BIN
source/images/code_bg.png
Normal file
BIN
source/images/code_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 239 B |
|
|
@ -2,6 +2,8 @@
|
|||
layout: default
|
||||
title: Syntax Highlighting Debug
|
||||
---
|
||||
<div class="code_window">
|
||||
<em>Ruby</em>
|
||||
{% highlight ruby %}
|
||||
def rebuild_site(relative)
|
||||
puts ">>> Change Detected to: #{relative} <<<"
|
||||
|
|
@ -11,9 +13,12 @@ def rebuild_site(relative)
|
|||
puts '>>> Update Complete <<<'
|
||||
end
|
||||
{% endhighlight %}
|
||||
</div>
|
||||
|
||||
So that's a small example. What about a big one?
|
||||
|
||||
<div class="code_window">
|
||||
<em>Ruby</em>
|
||||
{% highlight ruby %}
|
||||
require 'active_support/core_ext/array'
|
||||
require 'active_support/core_ext/hash/except'
|
||||
|
|
@ -219,4 +224,5 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
end
|
||||
{% endhighlight %}
|
||||
{% endhighlight %}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue