Particularly in the bug reports section, it would be very nice to have some syntax for cleverly linking to chunks of ToME code.

The whole ToME code is available via the web interface to the CVS server, so I'm really just wondering if we could have some Wiki magic to make it easy. I'm thinking something like this:

<2.2.6:spells1.c:600>

To automagically create a link to the CVS web front end accessing the 2.2.6 version of spells1.c at line 600. For example, the link http://angband.oook.cz/cgi-bin/cvsweb.cgi/tome2/src/spells1.c?rev=1.137.2.4&content-type=text/x-cvsweb-markup&cvsroot=tome&only_with_tag=tome_227 takes you to the 2.2.7 revision but I had to navigate there via the web front end, I don't know if there is a better way.... (and I don't know how to do line number but I think it may be possible).

What might be even cooler would be if we could say <2.2.6:spells1.c:600-615> to have the wiki backend automagically go and fetch those 15 lines of code from the CVS (either directly, or via the web front end, whichever is easier) and display them in a little code block.

The syntax above is completely arbitrary, I don't yet know wikis well enough to know what kind of syntax is likely to fit most neatly with the basic design.


FearofFours : Great Idea I'd love to see this.

Wiki Suggestions/Clever hotlinks to ToME code (last edited 2004-07-15 10:02:53 by 212)