Permalink
Browse files

Use Python code highlighting in docs and README

  • Loading branch information...
1 parent 1c2377e commit 06c50847dfb8841590f09b67349c1f478f772907 @treyhunner treyhunner committed Mar 13, 2013
Showing with 9 additions and 3 deletions.
  1. +3 −1 README.rst
  2. +6 −2 docs/usage.rst
View
@@ -40,7 +40,9 @@ may want to import and use the EditorConfig Python Core directly.
Using as a Library
==================
-Basic example use of EditorConfig Python Core as a library::
+Basic example use of EditorConfig Python Core as a library:
+
+.. code-block:: python
from editorconfig import get_properties, EditorConfigError
View
@@ -15,7 +15,9 @@ Discovering EditorConfig properties
-----------------------------------
The ``get_properties`` function can be used to discover EditorConfig properties
-for a given file. Example::
+for a given file. Example:
+
+.. code-block:: python
import logging
from editorconfig import get_properties, EditorConfigError
@@ -59,7 +61,9 @@ the current exception types:
Exception handling example
~~~~~~~~~~~~~~~~~~~~~~~~~~
-An example of custom exception handling::
+An example of custom exception handling:
+
+.. code-block:: python
import logging
from editorconfig import get_properties

0 comments on commit 06c5084

Please sign in to comment.