tab to spaces #106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Here's a feature request for translating tab to spaces. (like one tab -> two or four spaces )
Code mirror use pre to emulate tabs , but the default tab width in browser is too big ,
A suggestion is to create a option to use spaces with a xml-tab wrapper to instead of tab.
That will make it more useful , although I think it also will gain some performance cost.
This won't happen. Tabs are tabs, and if you want to convert them to spaces it is trivial to use some external code to do that.
I mean it's still a tab in "value", but use spaces in "view".
What actually I want is a "tab size" feature
That make sense for almost all modern editor ,
like in Notepad++ it has a "tab size" to adjust the tab view.
http://screencast.com/t/3xKezQxpzlBB
It's just a feature request , i could handle it well by myself,
I am fine if you think that's still a trivial one. ;)
But I think it's still a common usage for editors and worth to post a feature request for me.
Ah, I see what you mean now. This is not practical, unfortunately, until browsers allow reliable control over tab-size through CSS styling. To make cursor movement consistent, the tab size in the display has to match the tab size in the hidden textarea.
ok ,got it. Thanks anyway. ;)
Why is this impractical? Can't the tab be marked up with a span in which we can change the letter spacing?
Or, better yet, why not auto-convert tabs to a set number of spaces, and just treat them differently when navigating, deleting, etc?
This is a must-have for any text editor, for sure.
Just want to give an update that it's possible now with the
chunit. So.cm-tab { width: 8ch }will make the tab has the width of 8 charactersmentioned in issue #19