Use Python syntax highlighting (#453)

* Use Python syntax highlighting

* Use code directive instead

* use python syntax highlighting in the docs

* update Programming Language classifers for supported Python versions

* use %s instead
This commit is contained in:
Thijs Triemstra
2016-09-21 10:56:15 +02:00
committed by Dave Jones
parent 855377a664
commit 0c9e4a9575
3 changed files with 17 additions and 5 deletions

View File

@@ -23,7 +23,9 @@ About
=====
Component interfaces are provided to allow a frictionless way to get started
with physical computing::
with physical computing:
.. code:: python
from gpiozero import LED
from time import sleep
@@ -37,7 +39,9 @@ with physical computing::
sleep(1)
With very little code, you can quickly get going connecting your components
together::
together:
.. code:: python
from gpiozero import LED, Button
from signal import pause