Skip to content

Add syntax highlighting to Python code examples in README.rst [docs] #1208

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

Merged
merged 7 commits into from
Aug 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- Alexandre Catarino([@AlexCatarino](https://github.com/AlexCatarino))
- Andrey Sant'Anna ([@andreydani](https://github.com/andreydani))
- Arvid JB ([@ArvidJB](https://github.com/ArvidJB))
- Avinash Maddikonda ([@SFM61319](https://github.com/SFM61319))
- Benoît Hudson ([@benoithudson](https://github.com/benoithudson))
- Bradley Friedman ([@leith-bartrich](https://github.com/leith-bartrich))
- Callum Noble ([@callumnoble](https://github.com/callumnoble))
Expand Down Expand Up @@ -75,4 +76,3 @@
- ([@stonebig](https://github.com/stonebig))
- ([@testrunner123](https://github.com/testrunner123))
- ([@DanBarzilian](https://github.com/DanBarzilian))

6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Calling .NET code from Python

Python.NET allows CLR namespaces to be treated essentially as Python packages.

.. code-block::
.. code-block:: python

import clr
from System import String
Expand All @@ -33,7 +33,7 @@ Python.NET allows CLR namespaces to be treated essentially as Python packages.
To load an assembly, use the ``AddReference`` function in the ``clr``
module:

.. code-block::
.. code-block:: python

import clr
clr.AddReference("System.Windows.Forms")
Expand Down Expand Up @@ -85,7 +85,7 @@ Example

Output:

.. code::
.. code:: csharp

1.0
-0.958924274663
Expand Down