Code tags not working properly

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

X2-Illuminatus

X2-Illuminatus avatar
Level badge Markoguey (10)
Posted 11 years ago.

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
Roguey

Roguey avatar
Level badge Trueguey (22)
Posted 11 years ago.

are the code tags any better now? ive changed a few things.

X2-Illuminatus

X2-Illuminatus avatar
Level badge Markoguey (10)
Posted 11 years ago.

Yes, way better. Thank you very much. Smile

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

Roguey avatar
Level badge Trueguey (22)
Posted 11 years ago.

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.

Roguey

Roguey avatar
Level badge Trueguey (22)
Posted 11 years ago.

How are the code sections now? Is the colouring okay?

jack775544

jack775544 avatar
Level badge Skillguey (7)
Posted 11 years ago.

They look alright now.
I have seen both MSCI and MD and nothing looks wrong.

Roguey

Roguey avatar
Level badge Trueguey (22)
Posted 11 years ago.

glad to hear, it was one of them things which shouldnt of taken long to do but turned into a nightmare Smile

X2-Illuminatus

X2-Illuminatus avatar
Level badge Markoguey (10)
Posted 11 years ago.

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
1


You need to log-in to post here.