From: Aahz <aa...@py...> - 2003-03-03 21:17:58
|
On Mon, Mar 03, 2003, Saunders, Graydon wrote: > > What I want to do is to have a code example which is included as a > literal block and which has a range of lines specifed as having a > different class name from the rest of the block, so it's possible to > highlight some part of the code example as the interesting bit. > > Ideally, one could specify multiple ranges per literal block and the > associated class name extension so example 1 and example 2 can easily > have the same kind of highlighting for the same 'notice this' things. I'd say the best way to deal with this is to create a new ``highlight_literal`` directive. See the ``parsed_literal`` directive for ideas. You'd then need to string together multiple text sections, but that's fine IMO, much better than trying to use line numbers. -- Aahz (aa...@py...) <*> http://www.pythoncraft.com/ Register for PyCon now! http://www.python.org/pycon/reg.html |