tab-size

Why don't more size make use of the CSS tab-size attribute? On this site for instance I can open the Chrome console (F12) and under Styles on the right I can write tab-size: 4 and it instantly fixes the incorrect 8-size tab indentation by changing it to 4-size indentation. Try it here:
1
2
3
4
5
6
7
8
9
10
11
12
	if(x)
	{
		if(y)
		{
			if(z)
			{
				DoStuffWithALotOfParameters(stuffA, stuffB,
				                            stuffC, stuffD,
				                            stuffE, stuffF);
			}
		}
	}


I've tried finding a Chrome Extension for it, but the word "tab" is overwhelmingly used to refer to browser tabs and not the tab character. If one doesn't exist I think I'll try and see if I can make one - it should be simple to change the master CSS rule for all webpages to include "tab-size: 4" or whichever size you set in the settings.

EDIT: Pictures:
tab-size: 1; http://i.imgur.com/KLgF4bk.png
tab-size: 2; http://i.imgur.com/HhubjC7.png
tab-size: 3; http://i.imgur.com/X0ombqZ.png
tab-size: 4; http://i.imgur.com/SxMVsiE.png
Last edited on
I did not know you could do that with Chrome. Mind=blown.

But yeah you've made a real great point. I can agree to this.
Mother of God :O I didn't know you could this. I'm gonna have so much fun.
closed account (o1vk4iN6)
Are you still on windows XP ? That font needs smoothing.
xerzi wrote:
Are you still on windows XP ? That font needs smoothing.
Are you insane? I had to go through all kinds of hoops to disable font smoothing - I'm on Windows 7.
closed account (1yR4jE8b)
Are *you* insane? Fonts without anti-aliasing makes my eyes bleed.
What sort of monitor are you using LB?
closed account (3qX21hU5)
WOW thank you LB for that! The tab size on here has been annoying me for ages. I also believe you just made me want to start learning JavaScript and other web based languages ;p

Anyways just wanted to say thank you.
i like unblended text. it looks cool.
Lachlan Easton wrote:
What sort of monitor are you using LB?
It's an HD 1600x900 screen, but I don't see what that has to do with my preference of font smoothing. School computers use XP so I don't have to worry there.
School PCs really need to update from XP (It's ironic how im using xp right now).

I know its THE best windows OS along with 2000 and 7, but sadly microsoft had to be stupid and cancel support.
closed account (3qX21hU5)
Everything moves on and you can't expect them to offer support for a OS that is 3 releases old.

Technology changes with time and the software adapts to them changes. Now we are heading into the mobile age of tablets, smartphones, ect. And I believe Microsoft is making the right decisions with their new OS's.
but I don't see what that has to do with my preference of font smoothing.
It can have a lot to do with it. If you had a 20 inch 1920x1200 monitor you wouldn't be able to tell the difference. Having lower resolutions on larger screens makes for some awful anti-aliasing.
Topic archived. No new replies allowed.