5 ms·
Yes, you can. The three lines of code all start with exactly one tab. The second two lines each have 10 spaces after their initial tab.
by acuozzo 5y ago
Yes, you can.
The three lines of code all start with exactly one tab. The second two lines each have 10 spaces after their initial tab.
- alex_smart 5y agoBut which editor has support for that? I don't think even emacs has good support otb for mixed tabs like that. The typical behavior is to convert all spaces at beginning of line that are multiples of tab-width to tabs.
- junon 5y agoI've been doing it for ~10 years in vim without a single issue.
- samatman 5y agoGreat so I'm using two kinds of invisible character in a pointlessly difficult way... why, exactly? Can you write a linter for this which doesn't contain a complete parser for your language?
- junon 5y ago> invisible character Which respectable text editor in 2021 doesn't have an option to show whitespace? > Can you write a linter for this Every linter uses a "complete parser", else it wouldn't be a linter.
- acuozzo 5y agoI'm not in favor of the solution I posted. I only shared it because it is a solution to the problem that was presented.