On 2012-06-13, Federico Bruni wrote:
> Il 13/06/2012 21:18, Federico Bruni ha scritto:
>> I see: I think I'll end up using a general style for shell prompt and
>> use 'sudo' to show the commands which need root privileges.
>> Thinking twice, it's better, because quite often a single code block
>> might include root and normal user commands.

>> So I guess my CSS style will be something like this:

>> .code.sh pre {
>>      background-color: #000;
>>      color: #EDEDED;
>>      font-family: Courier;
>> }

> Thinking twice again.. using for any bash command:

> .. code:: sh

> is not handy at all.
> I'd rather use the literal block and specify the highlight I want in the 
> conf.py or in the beginning of the document:

> .. highlight:: sh

> Which means the CSS class to override will be:

> .highlight-sh pre {background: #000}


Indeed. Looking at the generated HTML, if find two levels of divs::

  <div class="highlight-sh"><div class="highlight"><pre>
   ...
  </pre></div>
  </div>

instead of the simple ``<pre class="highlight sh">``. 
May be worth a bug report.

Günter

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

Reply via email to