You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/markdown_syntax_highlighting/README.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,26 @@ draw the reader's attention:
92
92
</pre>
93
93
</div>
94
94
95
+
<br>
96
+
<br>
97
+
98
+
Note that the syntax highlighting does not only work for Python, but other programming languages.
99
+
100
+
So in the case of C++, for example:
101
+
102
+
:::c++
103
+
#include <iostream>
95
104
105
+
int main()
106
+
{
107
+
std::cout << "Hello, world!" << std::endl;
108
+
return 0;
109
+
}
110
+
111
+
112
+
Since the CodeHilite extension in Python-Markdown uses Pygments, every programming language that is []listed here](http://pygments.org/languages/) currently has support for syntax highlighting.
113
+
114
+
96
115
<br>
97
116
<br>
98
117
@@ -173,4 +192,18 @@ If we open our [**final.html**](https://github.com/rasbt/python_reference/blob/m
0 commit comments