Syntax highlighting
You can wrap inline code between backticks (`
) to apply inline syntax highlighting. Example: `#!python print('Hello world')`
will be rendered as print('Hello world')
(note that you have to start the code with #!LANGUAGE
for the highlighter to work).
You can also use Fenced Code Blocks, i.e., wrap multiline code between triple backticks (```
). Example:
def func(arg1, arg2):
"""
Docstrings
"""
m = max(arg1, arg2) # Some comment
return m
if __name__=='__main__':
print(func(21, 32))
```python
def func(arg1, arg2):
"""
Docstrings
"""
m = max(arg1, arg2) # Some comment
return m
if __name__=='__main__':
print(func(21, 32))
```