-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Henrik wrote: > Hi, > > I have tried to write a new wiki syntax provider to create links to > our NCR system (IBM Telelogic Synergy). These NCR's looks like this, > cbxpt_se#1234. I have managed to create my own class (see below). > However, it works at the moment for this syntax, cbxpt_se:1234. So my > question, is it possible to adapt my wikisyntaxprovider to match # > instead of :? Or is this reserved for trac ticket links, #1234? > > class cbxptWikiSyntax(Component): > > implements(IWikiSyntaxProvider) >
I'm a bit late, but here are my two cents on the topic anyway: I guess that you'll need to take a deeper look into the IWikiSyntaxProvider source. The matching of colon syntax like cbxpt_se:1234 is certainly the generic resource identifier translation, same as done with wiki:WikiStart, ticket:34, tags:ProjectX, screenshot:21, ... But I see your preferred markup is a shortcut syntax, again this should still be possible, since you don't request matching '#' alone, but 'cbxpt_se#', right. You may have a chance to do it, but before the end of the day you should ask yourself, if the '#' vs ':' really matters to you, and more important, if your users wouldn't do much better with a real shortcut instead of that monster-prefix ('cbxpt_se#'), like @1234 ? Sincerely Steffen Hoffmann (hasienda) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAk0E0QIACgkQ31DJeiZFuHfs4gCeOmvpu6csm/Jxc2FScCNYClZ2 +TcAn1mxY4OsVpBXjtZCbergtmkQhzMw =SG8K -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to trac-...@googlegroups.com. To unsubscribe from this group, send email to trac-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.