Skip to content

Commit

Permalink
Add python syntax highlighting (#5014)
Browse files Browse the repository at this point in the history
Use ``.. code-block:: python` instead of a plain `::`
  • Loading branch information
1kastner authored and davehunt committed Nov 6, 2017
1 parent 6e66b05 commit d17e0ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py/docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Example 0:
* open a new Firefox browser
* load the page at the given URL

::
.. code-block:: python
from selenium import webdriver
Expand All @@ -83,7 +83,7 @@ Example 1:
* search for "seleniumhq"
* close the browser

::
.. code-block:: python
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
Expand All @@ -103,7 +103,7 @@ Example 2:

Selenium WebDriver is often used as a basis for testing web applications. Here is a simple example uisng Python's standard `unittest <http://docs.python.org/3/library/unittest.html>`_ library:

::
.. code-block:: python
import unittest
from selenium import webdriver
Expand Down

0 comments on commit d17e0ac

Please sign in to comment.