I need change the default behavior of tabs (
\t
key) of 8 spaces to 4 spaces via CSS. Is it possible?If not, I can simulate it with javascript? There are some library or method to do it?
Example
From:
[tabtab][tabtab][tabtab]Hello World
[tabtab] Hey!
Change to:
[tb][tb][tb]Hello World
[tb] Hey!
Edit
Note that: if I have 1 to 3 character before a tab character, the tab will make only 1 space, instead of 4.
H[tabtb]ello World! --will be--
H[t]ello World!
Another example, without [tab] pseudo-key:
TAB GRID
---4---8---4---8-...
H ello World (1 tab key after H = 7 spaces, instead of 8) --will be--
H ello World (1 tab key sized 4 will be 3 spaces because of H)
He llo World
He llo World
Hel lo World
Hel lo World
Hell o World
Hell o World*
*
This example will not remove the that, just send to next block.
Edit 2
I post an issue to Chrome: read here.