Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
BBcode: How to espace tags i.e. open bracket "["
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
teika
Apprentice
Apprentice


Joined: 19 Feb 2011
Posts: 155
Location: YYYY-MM-DD, period. Have you ever used the Internet?

PostPosted: Thu Feb 09, 2017 7:38 am    Post subject: BBcode: How to espace tags i.e. open bracket "[" Reply with quote

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

XPAT - Xi, Putin, Abe and Trump - are security holes of their own nations.


Last edited by teika on Fri Feb 10, 2017 12:19 am; edited 2 times in total
Back to top
View user's profile Send private message
Akkara
Bodhisattva
Bodhisattva


Joined: 28 Mar 2006
Posts: 6702
Location: &akkara

PostPosted: Thu Feb 09, 2017 9:43 am    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6050
Location: Removed by Neddy

PostPosted: Mon Feb 13, 2017 9:30 am    Post subject: Reply with quote

noparse is a valid BBcode, just this forum is out of date :(
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
teika
Apprentice
Apprentice


Joined: 19 Feb 2011
Posts: 155
Location: YYYY-MM-DD, period. Have you ever used the Internet?

PostPosted: Fri Mar 03, 2017 6:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum