tabs on [code]

https://www.phpbb.com/ideas/
Post Reply
User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

tabs on [code]

Post by Martin Truckenbrodt »

Hello,
tabulators have to be tabulators on every

Code: Select all

 tag on every browser. Please remove the spaces.

Bye Martin

----------

View idea at: [idea=148]tabs on [code][/idea]

Posted by [user=54182]Martin Truckenbrodt[/user]
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Re: tabs on [code]

Post by Arty »

<code> tag doesn't display tab characters. This can only be achieved by using white-space:pre, which causes lots of other problems.

So this is a very bad idea.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
callumacrae
Former Team Member
Posts: 2662
Joined: Tue Feb 12, 2008 12:28 pm
Location: London, UK
Name: Callum Macrae
Contact:

Re: tabs on [code]

Post by callumacrae »

Arty wrote:<code> tag doesn't display tab characters. This can only be achieved by using white-space:pre, which causes lots of other problems.

So this is a very bad idea.
It can be worked around, but I'm not sure that I can see the point.
macr.ae = my website. you probably won't like it.
Proud user ofProud user of
brunoais
Registered User
Posts: 444
Joined: Wed Jun 18, 2008 10:50 am

Re: tabs on [code]

Post by brunoais »

Maybe we should make something that allows stating the size of the tabs.
Unfortunately, it's not supported by IE yet...
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: tabs on [code]

Post by JoshyPHP »

JavaScript syntax highlighters generally wrap their code in <pre><code>, and they look pretty good. Some of them can optionally replace tabs with a definable number of spaces.
I wrote the library that handles markup in phpBB 3.2+.
Post Reply

Return to “phpBB Ideas”