Home Board Index » Website » Website problems or errors » Code tags not working properly

Code tags not working properly



Posted 8 years ago.
 avatar
X2-Illuminatus



Illuminated
Hi,

The bb-code [ code ][ /code ] tags are not working properly. They're usually supposed to display the entered text with all blank lines, spaces and tabs. But in the current form they behave like the normal post window. For example, if you write two words between the code tags, it doesn't matter how many blank characters are between them, always just one is displayed.

The answer to life, the universe and everything: 42!
...or was it 23? Picture
Posted 8 years ago.
 avatar
Roguey



User Badge
Please insert pizza!
are the code tags any better now? ive changed a few things.

Posted 8 years ago.
 avatar
X2-Illuminatus



Illuminated
Yes, way better. Thank you very much. Smile

The answer to life, the universe and everything: 42!
...or was it 23? Picture
Posted 8 years ago.
 avatar
Roguey



User Badge
Please insert pizza!
hmm.. I think in the code tags, there is a double line spacing now - is this too much?

[update 2]

The code tags have been annoying the heck out of me for the past day or two, everything id tried has been causing other issues with my parser. However after much.... time... I hopefully got them a little better now:

// ---------------------
// Testing the updated code blocks:
// ---------------------
// col1 col2
// ---------------------
// item 1 cabbages
// item 2 goats
// ---------------------

a = b + c;

if (a = "cabbages" )
print "<test>yourNutz Wink </test>";

// ---------------------
// HTML test:
// ---------------------


<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>


Its not prefect and needs improvement still. However hopefully its much better than the older code blocks now.

Posted 8 years ago.
 avatar
Roguey



User Badge
Please insert pizza!
How are the code sections now? Is the colouring okay?

Posted 8 years ago.
 avatar
jack775544



Odd, Very odd
They look alright now.
I have seen both MSCI and MD and nothing looks wrong.

Posted 8 years ago.
 avatar
Roguey



User Badge
Please insert pizza!
glad to hear, it was one of them things which shouldnt of taken long to do but turned into a nightmare Smile

Posted 8 years ago.
 avatar
X2-Illuminatus



Illuminated
I have to agree with jack775544, code tags work fine so far. Good job, Roguey.

The answer to life, the universe and everything: 42!
...or was it 23? Picture
« Previous | Page: 1 | Next »


You need to log-in to post here.