I'm not sure how easy this would be, but would it be possible|useful to add this sort of thing for code tags to show which file they come from? Currently people have to do this manually, but this could make things clearer and/or more standardised. While I'm at it, would it possible to add more presentational tags within [code] tags (or any at all)? It's often useful to emphasise certain parts, and I think [u] tags would be ideal for this without making the code block unreadable. [b] might be useful as well, although I don't think any of the others should be parsed (nested [code] tags... aiee!). I have no idea what phpBB's bbcode support is like though, and it wouldn't surprise me to find this isn't really possible, or is at least insanely difficult...
Created attachment 81307 [details, diff] bbcode.php.patch This is a patch to bbcode.php to add [code="filename"] support.
Created attachment 81308 [details, diff] bbcode.tpl.patch This adds the html for the [code="filename"] support to bbcode.tpl
Looks good, better than my attempts :), I'm not going to add code for allowing tags inside [code] tags as it's a pita and you may want to include bbcode in the [code] tags which this would break. I'll add it to CVS soon.
Fixed, thanks for the patches.