Tim Hatch wrote:
> I notice that a lot of the new users to Trac end up pasting tracebacks.
>  I know this is being fixed in devel by the "Add Ticket" button, but
> should those be automatically converted to code blocks if left bare?
> I've got an 11-line patch that isn't too obtrusive for tracebacks (done
> in trac.wiki.formatter.Formatter.format().

You mean special highlighting for Python tracebacks? That could be 
useful, and should be done as a macro or WikiProcessor, so you could add 
that in a code block. Recognizing bare tracebacks would be harder, and 
probably not easily doable with the current  IWikiSyntaxProvider API. 
Patching the main "engine" is not a good idea for such a specialized 
situation.

>   However, when I started on
> recognizing conf entries it got too ugly because (with arbitrary Apache
> modules) it's hard to tell if something is just xml or if it's a conf.
>
> With the limited usefulness ("only while people still use <0.11"), is
> this helpful?
>   

Probably, as the code block used in 0.11 could be augmented by that 
macro/WikiProcessor "traceback" directive.

-- Christian


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Trac Development" group.
To post to this group, send email to trac-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to