From: David G. <go...@py...> - 2005-03-30 01:24:11
|
[Michael Foord] >> I find myself regularly using the raw directive to allow colorized >> python source code. I'm using 'colorize.py' from MoinMoin to >> colorize my python source code and then the raw directive to >> include it. >> >> It would be nice to see this included as core functionality - and >> not too complex given that the colorization is already implemented. I have no objections, and am willing to help. But if you wait for me, it may be a very long wait. Patches are always welcome. [Felix Wiemann] > I'm not sure if the functionality is not too complex for Docutils. It shouldn't be a problem > The colorizing code may not be problem-free (even though I haven't > looked at it). And the other issue is that people will soon ask for > C-colorizing code. And C++. And Perl. And PHP, Ruby, Lisp, Bash, > and many more. Let's not pass judgement prematurely. Rather, let's just see what happens. > We'd also need to add colors to core-Docutils, BTW. Not sure if we > want that. It could easily be done with "class" attributes and "inline" elements; no need to add anything to core Docutils. -- David Goodger <http://python.net/~goodger> |