reStructuredText in pycharm
Answered
For some reason, the lineno attribute used for numbering lines in code embedded in restructuredtext is not working in Pycharm 2018.2 release candidate:
.. code-block:: bash
:linenos:
echo Hello
Pygments 2.2.0 is properly installed and the Python version is 3.7.
The error is:
System Message: ERROR/3 (<stdin>, line 121)
Error in "code-block" directive: unknown option: "linenos".
.. code-block:: bash
:linenos:
echo Hello
Please sign in to leave a comment.
Hi, unfortunately, the parser we use doesn't support lineos. I created a request in our bug tracker: PY-30956. Please feel free to vote/comment.