summary refs log tree commit diff stats
path: root/doc/rstcommon.rst
diff options
context:
space:
mode:
authorAndrey Makarov <ph.makarov@gmail.com>2021-04-11 11:23:08 +0300
committerGitHub <noreply@github.com>2021-04-11 10:23:08 +0200
commit3aaec0647b6c924ea1da18e8427f13289ebab980 (patch)
tree6f38a30b548d9fe48cbe53147b38c0f8a8d92ffc /doc/rstcommon.rst
parent2150cd1826f11c74ce780dc0aaecedbed094230d (diff)
downloadNim-3aaec0647b6c924ea1da18e8427f13289ebab980.tar.gz
turn on syntax highlighting in Manual & Tutorial (#17692)
* turn on syntax highlighting in Manual & Tutorial

* avoid highlighting of "method"

* use relative path

* 2 more changes
Diffstat (limited to 'doc/rstcommon.rst')
-rw-r--r--doc/rstcommon.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/rstcommon.rst b/doc/rstcommon.rst
new file mode 100644
index 000000000..c1503fa96
--- /dev/null
+++ b/doc/rstcommon.rst
@@ -0,0 +1,6 @@
+
+.. role:: nim(code)
+   :language: nim
+
+.. default-role:: nim
+