Page 1 of 1

Add tab

Posted: Fri Nov 18, 2011 10:33 am
by Goofan
Hey,

My problem of the day is simply to add a tab of which you can do in a text editor such as word.
I can't come up with anything that can do a tab for me.

I looked up "\t" and that didn't do anything (which I could see)

I need to input a tab to a file because when I get the text within a file it doesn't take the tabs along with it.

Anyone got an idea of how I can manage this? PHP/CSS/HTML.... ??

Regards,
Thomas

Re: Add tab

Posted: Fri Nov 18, 2011 10:45 am
by Celauran
It's \t, not /t

Re: Add tab

Posted: Fri Nov 18, 2011 10:55 am
by Goofan
Yea sorry for that :D

Still there is no visual of it.

Edited the main post.

Re: Add tab

Posted: Fri Nov 18, 2011 10:57 am
by Celauran
Is this for writing to a file or for displaying in HTML? HTML ignores repeated whitespace, so you'd need a different approach.

Re: Add tab

Posted: Fri Nov 18, 2011 11:12 am
by Goofan
Yea reading for a File and displaying it.

And yea I got to that conclusion myself.
I still haven't found a solution.