Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106124 - Modifying the [code] tags to allow eg. [code="/etc/make.conf"]...[/code]
Summary: Modifying the [code] tags to allow eg. [code="/etc/make.conf"]...[/code]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Forums (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Forum Moderators
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-15 15:52 UTC by Jonathan Coome (RETIRED)
Modified: 2006-03-11 12:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
bbcode.php.patch (bbcode.php.patch,9.38 KB, patch)
2006-03-04 09:45 UTC, Jonathan Coome (RETIRED)
Details | Diff
bbcode.tpl.patch (bbcode.tpl.patch,684 bytes, patch)
2006-03-04 09:49 UTC, Jonathan Coome (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Coome (RETIRED) gentoo-dev 2005-09-15 15:52:48 UTC
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...
Comment 1 Jonathan Coome (RETIRED) gentoo-dev 2006-03-04 09:45:05 UTC
Created attachment 81307 [details, diff]
bbcode.php.patch

This is a patch to bbcode.php to add [code="filename"] support.
Comment 2 Jonathan Coome (RETIRED) gentoo-dev 2006-03-04 09:49:26 UTC
Created attachment 81308 [details, diff]
bbcode.tpl.patch

This adds the html for the [code="filename"] support to bbcode.tpl
Comment 3 Tom Knight (RETIRED) gentoo-dev 2006-03-04 10:06:15 UTC
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.
Comment 4 Tom Knight (RETIRED) gentoo-dev 2006-03-11 12:29:08 UTC
Fixed, thanks for the patches.