Help a developer work
full time on 0 A.D.!
Help us by donating on a regular basis!

Wildfire Games Community Forums: BB Escape Characters - Wildfire Games Community Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

BB Escape Characters

#1 User is offline   Lorian 

  • Group: Community Members
  • Posts: 4,048
  • Joined: 08-February 04

Posted 04 September 2005 - 11:12 AM

Around here you see a lot of spaced out BB code (Eg. [ b ]). I think we should be able to use escape characters, so we don't have to use the spaces. Good idea?
Chris Spencer [ aka Lorian ]

Wildfire Games Community Member
Contact me: spencercwNOSPAM@googlemail.com

My system:
Jeantech Achilles gaming case
AMD Sempron 2600+ 1.6GHz (running at 2.6GHz)
Abit NV8
Western Digital 80GB
nVidia GeForce 6800 XT 256MB
Kingston DDR 400 512MB x2
Enermax Noisetaker 370W
Samsung DVD-ROM
Generic CD-RW

#2 User is offline   Argalius 

  • Group: Community Members
  • Posts: 2,718
  • Joined: 30-March 04

Posted 04 September 2005 - 01:13 PM

I don't get it, what do you mean by excape characters?

#3 User is offline   Centurion_13 

  • Group: WFG Retired
  • Posts: 1,326
  • Joined: 13-August 04

Posted 04 September 2005 - 03:03 PM

a character you put in front of some code (in this case a bb tag) which tells the procesor not to process that part essentially making it similar to the code tags except only for a single tag and without all the highlighting etc.
Shan Coster [AKA Centurion_13]
Wildfire Games - 0ad Texture Artist
Contact me: shan_c@wildfiregames.com || Centurion13@gmail.com (prefered address)
Member of: The Hellenes Liberation Faction

#4 User is offline   Lorian 

  • Group: Community Members
  • Posts: 4,048
  • Joined: 08-February 04

Posted 04 September 2005 - 05:27 PM

You are obviously not a programmer Argalius :)

Here is an example in PHP:

echo "some text with "double" quote";

Would give a parse error

echo "some text with \"double\" quote";

Would output:

some text with "double" quote
Chris Spencer [ aka Lorian ]

Wildfire Games Community Member
Contact me: spencercwNOSPAM@googlemail.com

My system:
Jeantech Achilles gaming case
AMD Sempron 2600+ 1.6GHz (running at 2.6GHz)
Abit NV8
Western Digital 80GB
nVidia GeForce 6800 XT 256MB
Kingston DDR 400 512MB x2
Enermax Noisetaker 370W
Samsung DVD-ROM
Generic CD-RW

#5 User is offline   Argalius 

  • Group: Community Members
  • Posts: 2,718
  • Joined: 30-March 04

Posted 04 September 2005 - 05:58 PM

Ok, now I get it, I so this method in a php file once I didn't understand why it was used though, just copied it. :)

#6 User is offline   Lorian 

  • Group: Community Members
  • Posts: 4,048
  • Joined: 08-February 04

Posted 04 September 2005 - 06:33 PM

Well now you know :)

It gets rather irritating though, when you are writing/reading stuff in real life and you see un-escaped quote characters :D
Chris Spencer [ aka Lorian ]

Wildfire Games Community Member
Contact me: spencercwNOSPAM@googlemail.com

My system:
Jeantech Achilles gaming case
AMD Sempron 2600+ 1.6GHz (running at 2.6GHz)
Abit NV8
Western Digital 80GB
nVidia GeForce 6800 XT 256MB
Kingston DDR 400 512MB x2
Enermax Noisetaker 370W
Samsung DVD-ROM
Generic CD-RW

#7 User is offline   DarkAngelBGE 

  • Group: WFG Retired
  • Posts: 7,686
  • Joined: 25-August 03

Posted 28 September 2005 - 09:29 AM

How about [\b]This is escaped BB code[\/b] ?
Tim Koschuetzki [ aka DarkAngelBGE ]

Wildfire Games Community Administrator, Webmaster, Human Resources Manager
Contact me: tim@wildfiregames.com

My website: tim-koschuetzki.com

Recent work: PHP Design Patterns | PHP Coding Practices | Stop the Smoking! | My Services | My Blog

Support Wildfire Games!


#8 User is offline   Lorian 

  • Group: Community Members
  • Posts: 4,048
  • Joined: 08-February 04

Posted 28 September 2005 - 06:51 PM

Sound good, except it should remove the extranious slashes
Chris Spencer [ aka Lorian ]

Wildfire Games Community Member
Contact me: spencercwNOSPAM@googlemail.com

My system:
Jeantech Achilles gaming case
AMD Sempron 2600+ 1.6GHz (running at 2.6GHz)
Abit NV8
Western Digital 80GB
nVidia GeForce 6800 XT 256MB
Kingston DDR 400 512MB x2
Enermax Noisetaker 370W
Samsung DVD-ROM
Generic CD-RW

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users