Uutiset:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu
Advertisement:

Using BBCode in the Code Tags

Aloittaja Bront, toukokuu 11, 2007, 02:31:52 AP

« edellinen - seuraava »

Bront

I see that inside the CODE tags, BBCode doesn't work.  Is there a way to fix that?

I'm looking for something that doesn't trunkate tabs or extra spaces so I can line things up with text.
Check it out [nofollow]

metallica48423

i believe its designed not to, its supposed to be used as simply to display code bits without parsing smilies, bbcode, or anything else.  It is simply supposed to display code snippets without interrupting them in formatting and such :P

you could use [quote] and [/quote] which does similar and DOES parse BBC
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

LainaaMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Thantos

LainaaI see that inside the CODE tags, BBCode doesn't work.  Is there a way to fix that?
Can't fix what isn't broken.

I know some people like it so they can color their code, but really it can cause way more problems then it worth.

Example:


arr[i] = 5;
printf("%d[/i]", arr[i]);

With BBC parsing on you'd have:
Lainaa
arr = 5;
printf("%d
", arr);

Which doesn't make a lot of sense and greatly changed the code.

Advertisement: