-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Python syntax highlighting to README.rst
#395
Conversation
Verified exhaustiveness with: ```bash find -name '*.rst' ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for an easy review! And the improvements. :]
What do you think of using python-console
for those blocks as in the suggestions?
|
||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. code-block:: python | |
.. code-block:: python-console |
@@ -325,6 +332,8 @@ REPORTING | |||
The output can be redirected to a log file by passing IO stream as | |||
parameter to the decorator like @profile(stream=fp) | |||
|
|||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. code-block:: python | |
.. code-block:: python-console |
@@ -343,6 +352,8 @@ when we need to use RotatingFileHandler. | |||
The output can be redirected to logger module by simply making use of | |||
LogFile of memory profiler module. | |||
|
|||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. code-block:: python | |
.. code-block:: python-console |
@@ -354,11 +365,13 @@ could be cumbersome and one can choose only entries with increments | |||
by passing True to reportIncrementFlag, where reportIncrementFlag is | |||
a parameter to LogFile class of memory profiler module. | |||
|
|||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. code-block:: python | |
.. code-block:: python-console |
@@ -441,6 +466,8 @@ Currently, the backend can be set via the CLI | |||
|
|||
and is exposed by the API | |||
|
|||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. code-block:: python | |
.. code-block:: python-console |
@@ -282,6 +287,7 @@ necessarily a Python program), a string containing some python code to | |||
be evaluated or a tuple ``(f, args, kw)`` containing a function and its | |||
arguments to be evaluated as ``f(*args, **kw)``. For example, | |||
|
|||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.. code-block:: python | |
.. code-block:: python-console |
Thank you for suggesting using Python console syntax highlighting, I like the idea of using it to be more precise. However, as this code snippet shows in the So Python console GitHub syntax highlighting rendering doesn't seem perfect yet, hence I don't have any strong opinion and I let you choose the one you prefer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always something, isn't it... Oh well.
Verified exhaustiveness with:
find -name '*.rst'