Reputation: 9465
For example:
def foo():
'''
.. highlight:: python
import sys
'''
Doesn't produce desired output (it prints the word "highlight" verbatim and doesn't format the following code in any special way). Same happens for code-block
.
I tried different indentation etc. No matter what, generator succeeds with roughly the same, but not the desired output.
Upvotes: 21
Views: 29328