4 Aug 2006 00:05
ReST syntax for colourizing source?
John J Lee <jjl <at> pobox.com>
2006-08-03 22:05:46 GMT
2006-08-03 22:05:46 GMT
What's the best reST syntax to use when you want colourized (Python)
source code in your HTML output?
I have two cases:
1. Inline source. Would it be normal to use a directive here, or to just
use a normal indented block after a "::" (reimplementing or extending
rst2html as necessary)?
2. Source from an external file.
I notice rest2web has a colorize "macro" to handle case 2., but not sure
if that's part of reST proper.
Any examples of code to implement "similar" things would be appreciated
too.
TIA
John
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
RSS Feed