From: G. M. <mi...@us...> - 2007-05-30 15:51:47
|
On 30.05.07, David Goodger wrote: > On 5/30/07, G. Milde <mi...@us...> wrote: > > Felix did post a "draft" of this approach (attached). > This approach is good. My alternative proposal was > > * Enhance writers to support syntax highlight for "literal-block" doctree > > elements with ``classes="code-block LANGUAGE"``. > > ... > I strongly oppose this approach. Writers should not be responsible for > parsing, in any form. Thanks David for your clear decision. Once it is clear that source-code parsing for syntax highlight should not happen inside a writer, the question remains whether it should be implemented * in the parser, or * as a transformation of "literal_block" nodes with "sourcecode" (or "code-block") in the classes list. Is there a way to do this as "plug-in" (Analog to the examples in http://docutils.sf.net/docs/howto/rst-directives.html)? Guenter |