View previous topic :: View next topic |
Author |
Message |
teika Apprentice
Joined: 19 Feb 2011 Posts: 165 Location: YYYY-MM-DD, period. Have you ever used the Internet?
|
Posted: Thu Feb 09, 2017 7:38 am Post subject: BBcode: How to espace tags i.e. open bracket "[" |
|
|
Edit: As pointed out by Akkara in the next message, replace every open bracket [ with
[[b][/b]
This one displays a snippet you can copy & paste. It's far better than mine. Thanks!
--- Below is obsolete ---
You can escape an open bracket with:
[color=black][[/color]
i.e. by sandwiching an open bracket with "color=black"
Usage example:
[color=black][[/color]topic=1058924]a topic link[/topic]
It produces:
[topic=1058924]a topic link[/topic] (extra closing tags will be rendered as-is.)
I can't find any other simple way that you can copy & paste. It seems to be a kind of BBcode bug. _________________ Hack of easy Shift / Ctrl / AltGr etc; save your pinkies, type without drudgery: topic 865313
BTRFS - Biden & TRump, Fools Suck.
Last edited by teika on Fri Feb 10, 2017 12:19 am; edited 2 times in total |
|
Back to top |
|
|
Akkara Bodhisattva
Joined: 28 Mar 2006 Posts: 6702 Location: &akkara
|
Posted: Thu Feb 09, 2017 9:43 am Post subject: |
|
|
You can use a empty italics or bold tag immediately after the '[', and the parser stops trying to interpret it:
Code: | [[i][/i]topic=1059076]Self-referential topic[/topic] |
Shows up as: [topic=1059076]Self-referential topic[/topic]
Yes, it's a hack. But not as bad of one _________________ Many think that Dilbert is a comic. Unfortunately it is a documentary. |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6069 Location: Removed by Neddy
|
Posted: Mon Feb 13, 2017 9:30 am Post subject: |
|
|
noparse is a valid BBcode, just this forum is out of date _________________ #define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0; |
|
Back to top |
|
|
teika Apprentice
Joined: 19 Feb 2011 Posts: 165 Location: YYYY-MM-DD, period. Have you ever used the Internet?
|
Posted: Fri Mar 03, 2017 6:58 am Post subject: |
|
|
Hm, "valid" is not exact; there's no "official" BB code, and not few forums do fail to support [noparse]. (Arch and Debian forums don't, either.)
Of coures it'd be great if Gentoo Forum gets improved. :) |
|
Back to top |
|
|
|