Hello I'm a little lost on this, I'm displaying the output of a tutorials system and am use htmlentities() and nl2br however when users post information like the body of the tutorial and say it has a piece of code like:
but the output makes it appear flat likeCode:If blah = blah Look here, this is indented end if
how can I keep any spaces before the start of a string for each line, how can I retrieve that indent????Code:If blah = blah Look here, I'm FLAT end if




Reply With Quote