From da0b649c3c6ff9125d43376f4d9ab9a7c44b3a5a Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 11 Feb 2020 12:23:35 -0300 Subject: [PATCH] Add syntax highlight to examples in README --- README.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 7715cc35..659e44f1 100644 --- a/README.rst +++ b/README.rst @@ -44,7 +44,9 @@ However, we currently do not support SOCKS proxies nor the pyOpenSSL and SecureT Sample code ----------- -Hip is powerful and easy to use:: +Hip is powerful and easy to use: + +.. code-block:: python >>> import hip >>> http = hip.PoolManager() @@ -54,7 +56,9 @@ Hip is powerful and easy to use:: >>> r.data 'User-agent: *\nDisallow: /deny\n' -It also supports async/await:: +It also supports async/await: + +.. code-block:: python import hip import trio