News:

Wondering if this will always be free?  See why free is better.

Main Menu

Code blocks not preserving tabs like on this forum

Started by evilC1, October 28, 2008, 01:26:36 PM

Previous topic - Next topic

evilC1

See the following code block:
This is some
indented code


Notice that the code is indented with tabs, not spaces!
When I post code like this into my SMF 2 forum, it strips the tabs. Any ideas why?

ccbtimewiz

Your code looks like this:

[code] This is some
indented code[/code]

It should appear as such:


[code]
     This is some
     indented code
[/code]

evilC1

hmm, apologies for being a numbnuts, it's only the preview that is doing it.
This site, preview = fine. My site (hxxp:g2.evilc.com/forum [nonactive]) does not show the tabs correctly in the preview. Who cares tho, as long as it works when you post.
Oh, and either way works, inline or code tags on their own line. Neither affect the preview mode.

Thanks anyway...

Advertisement: