From: Toni B. <Ton...@sw...> - 2004-07-23 22:45:13
|
Hi, I've started to use ReST with the wiki inside Trac. I missed that there was no way to syntax highligh code-block and looked aroung the net. I found a code-block directive in the rst2 plugin to Leo project (search = on google). With that you do=20 .. code-block: Language code .... And the code is syntax highlighted. I have sent a patch for this = directive to be included to Trac aswell. But I think this is of general intrest so I propose to change the qoute = directive to :: Language Where language is optional argument and says that the quote is written = int the programming language. The code in Leo uses SilverCity module to syntax-highlight the code.=20 If ppl dont think it is good idea to change the quote tag i would = propose to include the code-block directive in the distribution. I would be happy to supply the code, if there is an intrest. Best regards, Toni |