Permalink
Browse files

Add code block with highlighting example.

  • Loading branch information...
1 parent a4973bb commit 2be4811b48aa393a84402a5a80c58463b3e13389 @jterrace committed Oct 1, 2013
Showing with 10 additions and 1 deletion.
  1. +10 −1 ch-typography/text.rst
View
@@ -13,7 +13,16 @@ You can make block quotes:
You can make code blocks::
- this is a code block
+ this is a regular code block
+ no styling information here
+
+You can also make code blocks and get nice per-language syntax highlighting.
+For example, the following block is some Python code:
+
+.. code-block:: python
+
+ import os
+ print os.path.abspath(__file__)
Some convenience substitutions are defined in the epilog:

0 comments on commit 2be4811

Please sign in to comment.