Nope, same for editors as well.astions wrote:@aka, I think your totally right about how tabs have a set width. But isn't that related to document formating? As in for print? I think code is a bit different.
Some editors will allow you to change how wide a tab is on screen but as long as it uses a tab character it will be represented the same way on any editor.
Say you have editor1 that displays all tabs as 3 spaces wide. It doesn't insert 3 spaces but the tab character is shown as 3 spaces wide.
Next you have editor2 that displays all tabs as 4 spaces wide. Same thing, it doesn't insert 4 spaces but the single tab character is shown as 4 spaces wide.
If you cut a block of code from editor1 and insert it into editor2 the tabs from the code created in editor1 will be show as 4 spaces wide in editor2.
You don't have to do anything and when cutting and pasting in the reverse either.
But if you have two editors that use SPACES for tabs and you cut from editor1 with 3 spaces per tab and paste to editor2 with 4 spaces per tab the formatting will be off by 1 space in the code you cut and pasted. You will have to go through and add or remove spaces to get it to line up properly.
If you use REAL tabs you never have to worry about that. Using REAL tabs is by far the better of the two as it is more standard.