Il 12/06/2012 11:31, Guenter Milde ha scritto:
a) use the "sh" lexer, give a class value to the input and use a custom
    style (CSS rule with class selector with HTML

What's the best way to add a custom style?
I can imagine it's been asked before, but I couldn't find anything useful in the documentation and in the archives.

Best hint was in conf.py, about the _static directory.
So I created _static/custom.css and inserted these lines:

@import url("default.css");

div.code.sh.root {
    background: #4D8DFE;
}

But it doesn't work. What's wrong?

I must say that I don't have a full understanding of the classes here.
I can see on firebug that:

.. code: sh
   :class: root

assigns the class "code sh root highlight-python" (or highlight-none if highlighting is disabled in conf.py).

Thanks in advance,
Federico

--
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to