Skip to content

Commit d17e0ac

Browse files
1kastnerdavehunt
authored andcommitted
Add python syntax highlighting (#5014)
Use ``.. code-block:: python` instead of a plain `::`
1 parent 6e66b05 commit d17e0ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

py/docs/source/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Example 0:
6868
* open a new Firefox browser
6969
* load the page at the given URL
7070

71-
::
71+
.. code-block:: python
7272
7373
from selenium import webdriver
7474
@@ -83,7 +83,7 @@ Example 1:
8383
* search for "seleniumhq"
8484
* close the browser
8585

86-
::
86+
.. code-block:: python
8787
8888
from selenium import webdriver
8989
from selenium.webdriver.common.keys import Keys
@@ -103,7 +103,7 @@ Example 2:
103103

104104
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:
105105

106-
::
106+
.. code-block:: python
107107
108108
import unittest
109109
from selenium import webdriver

0 commit comments

Comments
 (0)