Skip to content

Commit 4168572

Browse files
SFM61319filmor
authored andcommitted
Add syntax highlighting to Python code examples in README.rst [docs] (pythonnet#1208)
1 parent 7cb00ee commit 4168572

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

AUTHORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- Alexandre Catarino([@AlexCatarino](https://github.com/AlexCatarino))
2121
- Andrey Sant'Anna ([@andreydani](https://github.com/andreydani))
2222
- Arvid JB ([@ArvidJB](https://github.com/ArvidJB))
23+
- Avinash Maddikonda ([@SFM61319](https://github.com/SFM61319))
2324
- Benoît Hudson ([@benoithudson](https://github.com/benoithudson))
2425
- Bradley Friedman ([@leith-bartrich](https://github.com/leith-bartrich))
2526
- Callum Noble ([@callumnoble](https://github.com/callumnoble))
@@ -75,4 +76,3 @@
7576
- ([@stonebig](https://github.com/stonebig))
7677
- ([@testrunner123](https://github.com/testrunner123))
7778
- ([@DanBarzilian](https://github.com/DanBarzilian))
78-

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Calling .NET code from Python
2424

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

27-
.. code-block::
27+
.. code-block:: python
2828
2929
import clr
3030
from System import String
@@ -33,7 +33,7 @@ Python.NET allows CLR namespaces to be treated essentially as Python packages.
3333
To load an assembly, use the ``AddReference`` function in the ``clr``
3434
module:
3535

36-
.. code-block::
36+
.. code-block:: python
3737
3838
import clr
3939
clr.AddReference("System.Windows.Forms")
@@ -85,7 +85,7 @@ Example
8585
8686
Output:
8787

88-
.. code::
88+
.. code:: csharp
8989
9090
1.0
9191
-0.958924274663

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy