On Friday, 14 June 2019 15:33:31 UTC+2, Anton Akhmerov wrote:
>
> Hi Stefano,
>
> 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
>> *****
>>
>
> "emphasize-lines" is indeed very similar to what I want to achieve.
> Unfortunately it produces a yellow highlight (which roughly means "look
> here"). Instead I'd like to have a red highlight "something is wrong";
> that's somewhat different. Do you know if it's possible to achieve such a
> red highlight?
>
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 the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
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.