
Hi everyone,I have a basic question to which I unfortunately cannot find an answer neither in the documentation nor anywhere else on the web.I would like to display some stderr in the built documentation, and for that I would like to highlight it similarly to jupyter:
What is the semanically correct way to achieve this result? Which nodes do I need to insert?
Have you tried adding your code in a .. code-block:: <language> ? Something like*****.. code-block:: bash
:emphasize-lines: 3
print('hi', file=sys.stderr)
hi*****
I think the only possibility is to modify the CSS for that: just fire up an inspector on the HTML output and check how is called the <div> corresponding to the highlighted zone, then modify it.Hope this helps,Stefano
--
You received this message because you are subscribed to a topic in the Google Groups "sphinx-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sphinx-users/VMpg4d6i1GI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sphinx-users...@googlegroups.com.
To post to this group, send email to sphinx...@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/60e6ffe7-a689-45d1-a243-b71aa0ab39ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.