1 May 2003 14:54
Re: [Docutils-users] Custom behaviour in reST
Stefan Merten <smerten <at> oekonux.de>
2003-05-01 12:54:27 GMT
2003-05-01 12:54:27 GMT
Hi David and all! I'm redirecting this to the developers list. Today David Goodger wrote: >> I think it's good to keep such things >> outside the core of Docutils if this is to be able to scale. > > Agreed. I'm leaning toward adding a single new general-purpose element, > "phrase", equivalent to HTML's <span>. Which is why I originally wrote > > (Here, the <keyword> etc. tags are just examples off the > top of my head. They're not necessarily a recommended > implementation. "class" attributes on a <span> equivalent > [perhaps "phrase"] may be the way to go.) > > In other words, <keyword> etc. were just placeholders. Here's the > example rewritten using the generic "phrase": > > <literal_block xml:space="preserve" class="python"> > <phrase class="keyword">print</> <phrase > class="string">'This is Python code.'</> > <phrase class="keyword">for</> <phrase > class="identifier">i</> <phrase class="keyword">in</> <phrase > class="expression">range(10)</>: > <phrase class="keyword">print</> <phrase > class="expression">i</> > </literal_block> >(Continue reading)
RSS Feed