On Wed, Jul 6, 2011 at 10:16 AM, wgw <[email protected]> wrote:
> AFAIK, the code-to-rst function does not (cannot?) generate code syntax
> highlighting.
>
> Is there any easy way to do the same thing as code-to-rst but with syntax
> highlighting?
>
> I know Leo does syntax highlighting, but can docutils do it during
> code-to-rst? (maybe this algorithm would do the trick:
> http://code.activestate.com/recipes/252170-syntax-highlighted-code-blocks-for-docutils/)

Leo, that is, docutils, will use the SilverCity syntax highlighter if
it is available.  However, I'm not sure whether this is works with
code-to-rst, but looking at the code I think it might.

BTW, it looks like there is no real documentation for code-to-rst.
There is mention of options for code-to-rst at
http://webpages.charter.net/edreamleo/rstplugin3.html, but that's all.

Edward

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to