Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit29978d8

Browse files
authored
Add syntax highlighting to Python code examples in README.rst [docs] (pythonnet#1208)
1 parent5b989cb commit29978d8

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 Systemimport 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)

[8]ページ先頭

©2009-2025 Movatter.jp