Hi guys,
I just noticed that Google Code (and Google Code Search) display code
in such a way as to make copying and pasting source code really nice,
and this could be a great enhancement for the Trac source browser.
When you copy and paste code from the Trac source browser, it's a bit
of a hassle, because you get the line numbers selected as well, and
you always only want the code. Try it here and you'll see:
http://trac.edgewall.org/browser/trunk/cgi-bin/trac.cgi
However, Google Code [Search] generates the HTML in such a way that
when you copy and paste code, you only get the code -- the line
numbers are in a different table cell or something. Try it at these
two links:
http://google.decenturl.com/python-src-complexobject
http://code.google.decenturl.com/modwsgi-src-setup
When I do want to copy-n-paste code in Trac, I always find myself
scrolling to the bottom, clicking "Plain Text", finding my place again
in the plain text version, and *then* doing the copy-n-paste.
Any thoughts? Should I start a Trac ticket suggesting it? Or just
follow the open source rule and stop complaining until I'm ready to
implement it? :-)
I could also create a
http://microPledge.com project for it -- I'd
pledge $20, for a start. :-)
Cheers,
Ben.