Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Add syntax highlighting to Python code
  • Loading branch information
SFM61319 authored Aug 21, 2020
commit 1b6a703f017af390a84080ed5b7c7449f4b001df
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