improved code docs a bit

This commit is contained in:
Brandon Mathis 2011-08-21 16:31:10 -04:00
parent 1e26b77a0d
commit 16773b4514
2 changed files with 5 additions and 5 deletions

View File

@ -46,11 +46,10 @@ Including a file extension in the title enables highlighting
puts "Awesome!" unless lame
{% endcodeblock %}
#### Example 4
**Note:** Pygments supports many languages, but doesn't recognize some file extensions.
Add `lang:your_language` to force a language for highlighting. Here's an example:
#### Example 4 (Force Highlighting)
Pygments supports many languages, but doesn't recognize some file extensions.
Add `lang:your_language` to force highlighting if the filename doesn't work.
{{ "{% codeblock Here's an example .rvmrc file. lang:ruby" }} %}
rvm ruby-1.8.6 # ZOMG, seriously? We still use this version?

View File

@ -22,7 +22,7 @@ This includes a file from `source/downloads/code/test.js`.
{% include_code test.js %}
#### Example 2 (with optional title)
#### Example 2
By default the `<figcaption>` will be the filename, but you can add a title before the filepath if you like.
{{ "{% include_code Add to_fraction for floats ruby/test.rb" }} %}
@ -32,6 +32,7 @@ This includes a file from `source/downloads/code/ruby/test.rb`.
{% include_code Add to_fraction for floats ruby/test.rb %}
#### Example 3 (Force Highlighting)
Pygments supports many languages, but doesn't recognize some file extensions.
Add `lang:your_language` to force highlighting if the filename doesn't work.