Skip to content

Commit 5861c2d

Browse files
authored
README - add syntax highlighting
A little easier on the eyes
1 parent 7f31192 commit 5861c2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ Usage
3636

3737
Titlecase provides only one function, simply:
3838

39-
::
39+
.. code-block:: python
4040
4141
>>> from titlecase import titlecase
4242
>>> titlecase('a thing')
4343
'A Thing'
4444
4545
A callback function may also be supplied, which will be called for every word:
4646

47-
::
47+
.. code-block:: python
4848
4949
>>> def abbreviations(word, **kwargs):
5050
... if word.upper() in ('TCP', 'UDP'):
@@ -63,7 +63,7 @@ Command Line Usage
6363

6464
Titlecase also provides a command line utility ``titlecase``:
6565

66-
::
66+
.. code-block:: python
6767
6868
$ titlecase make me a title
6969
Make Me a Title

0 commit comments

Comments
 (0)