HTML tab stops for tab-delimited plain text


I understand the <pre> </pre> tags allow plain text to be displayed with line breaks etc, no need for HTML markup.

Is there also a way to set tab stops unfront so that tab-delimited plain text can be displayed without markup?

<some tab definition code>
my plain text with tabs   col 2  col 3 
blabla col2 col 3

Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jan LouwerensSoftware EngineerCommented:
Although it won't work in IE (Browser support), if you're using other browsers, you could use the following CSS:

   -moz-tab-size: 3;
   -o-tab-size: 3;
   tab-size: 3;

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
xeniumAuthor Commented:
Thanks a lot

Is there a way to set the tab size for each column?

I'm guessing not....

Also what are the  -moz-tab-size lines and -o-tab-size lines, for different browsers?
Jan LouwerensSoftware EngineerCommented:
I do not believe there is a way to specify the tab stops per column. You would probably have to perform some kind of text processing (either on the server side, or in javascript) to achieve that.

Yes, the -moz-tab-size lines and -o-tab-size are for older browser versions, prior to them supporting the standard tab-size rule.
xeniumAuthor Commented:
Thanks a lot
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.