12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- ..
- Usage of this file:
- Add this in the beginning of *.rst file:
- .. default-role
- .. include
- It's the current trick for brevity and compatibility with both Github and
- rst2html.py, considering that Github cannot highlight Nim in
- RST files anyway and it does not include files.
- This way interpreted text is displayed with monospaced font in Github
- and it's displayed an Nim code in both rst2html.py
- (note ".. default-role
- For files that are user manual and consist of stuff like cmdline
- option description, use 'code' as a **real** default role:
- .. include
- .. default-role
- .. define language roles explicitly (for compatibility with rst2html.py):
- .. role
- :language: nim
- .. default-role
- .. role
- :language: c
- .. role
- :language: cpp
- .. role
- :language: yaml
- .. role
- :language: python
- .. role
- :language: java
- .. role
- :language: csharp
- .. role
- .. role
- .. role
|