Fork me on GitHub
Subscribe 7

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.


Dirk 2010-08-25 19:31:36

  • Description changed. (Diff)

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:

Franz 2010-09-05 11:29:35

  • Owner set to ridgerunner.

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).

Reines 2010-10-27 13:19:39

  • Milestone changed from 1.4.3 to 1.4.4.

Franz 2010-12-06 21:59:55

  • Type changed from enhancement to task.

Reines 2011-01-26 11:20:30

  • Milestone changed from 1.4.4 to 1.4.5.

Reines 2011-01-30 22:02:16

  • Type changed from task to enhancement.

Reines 2011-02-10 09:47:01

  • Milestone changed from 1.4.5 to 2.0-beta1.

Reines 2011-02-25 00:50:42

  • Milestone changed from 2.0-beta1 to 2.0-alpha3.

Franz 2015-06-26 09:51:46

  • Milestone changed from 2.0-alpha3 to 1.6.
  • Owner ridgerunner removed.

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').

quy 2015-12-27 21:17:55

Maybe [inline]?

Studio384 2015-12-27 21:29:36

Commit a9fe9a4 to fluxbb 1.6

#108 Add inline code tag, currently using 'c'

Studio384 2015-12-27 21:33:17

Commit 9a72fc7 to fluxbb 1.6

#108 Implement inline code for default styles

Studio384 2015-12-27 21:33:27

Commit e7b4f83 to fluxbb 1.6

#108 Implement inline code for legacy styles

Studio384 2015-12-27 21:33:36

Commit 7780ab5 to fluxbb 1.6

#108 Implement inline code for Technetium styles

Studio384 2015-12-27 22:39:13

Commit 3b6d688 to fluxbb 1.6

#108 Add documentation for inline code

Studio384 2015-12-27 22:39:56

Commit e0c5a02 to fluxbb 1.6

#108 Don't make the font smaller

Studio384 2015-12-27 22:40:34

Commit b7a240b to fluxbb 1.6

#108 Use the .code class on all code fields

Studio384 2015-12-27 23:42:16

Over at phpBB they seem to recommend c.

Franz 2015-12-28 13:37:31

tt is another option

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.

Franz 2016-01-29 20:36:04

  • Status changed from open to fixed.

Studio384 2018-07-18 09:42:12

Commit add194e to fluxbb 1.6-next

Add inline code tag, using [c] tag

- CSS for all styles
- Documentation on help page
- Tweak styling of code examples on help page

Fixes #108.

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.

Franz 2019-02-15 13:15:20

I'd rather get 1.6 out quickly. smile