mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-12-24 08:28:50 -05:00
improved code docs a bit
This commit is contained in:
parent
1e26b77a0d
commit
16773b4514
@ -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?
|
||||
|
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user