Ticket #108 (fixed enhancement)
BBcode tag for inline code
- Created: 2010-08-25 19:29:33
- Reported by: Dirk
- Assigned to: Studio384
- Milestone: 1.6
- Component: parser
- Priority: normal
Could you add a BBcode tag for creating inline code in forum posts?
This doesn't have to be done by messing around with the code tag and checking if there are words around it. I guess the easiest way to add this functionality would be adding a new BBcode tag element and replacing it with <tt> on parsing.
See discussion in the forums on that topic.
History
Franz 2010-08-25 19:48:01

- Description changed. (Diff)
- Milestone set to 1.4.3.
- Summary changed from inline code BBcode tag to BBcode tag for inline code.
Paul mentioned we should rather use the <code> tag.
ridgerunner 2010-08-29 01:17:59

I'll take this one on. But please note that the solution will be a rather large (but tasty) red pill.
See my post: http://fluxbb.org/forums/viewtopic.php?pid=34960#p34960
Reines 2010-10-20 14:16:23

I'm tempted to add this to the existing parser (maybe a [mono] tag?) just for the meantime until the new parser is completed...
Also, whether or not we should include the new parser in 1.4 or wait for 2.0 is another question that we'll need to consider at some point.
Franz 2010-10-20 14:27:14

Depends on whether it is close to being finished or not, I would say. I'd favor releasing 1.4.3 rather quickly, though, and then hold off 1.4 for a while (unless there are more urgent things).
Studio384 2015-12-27 20:29:24

- Owner set to Studio384.
So what would the tag for inline code be? There does not appear to be a de facto standard for this in BBCode? We could use [mono] or [c] (as in short for 'code').
Studio384 2015-12-28 13:55:56

Well, in HTML, the tt-tag is no longer part of the standard and was actually ment for keyboard input, and not code.
jamespharvey20 2019-02-15 00:55:15

Any way this can be backported to the 1.5 branch? This is such a great feature, and although it was written 3 years ago, no one using the latest vanilla release of FluxxBB gets to use it.