riot / syntax-highlight

Riot tags syntax rules
MIT License
14 stars 1 forks source link

Preserving existing indents #8

Closed enjibby closed 5 years ago

enjibby commented 6 years ago

I prefer using 2 spaces instead of tabs for my code but, as I'm often editing shared projects, I wish to minimise my diffs when committing to source control.

Is there any way to separate the functionality of the "translate_tabs_to_spaces" setting such that any code I write personally indents using spaces, but when I'm adjusting indents on other user's code or pasting code from other sources that it preserves any tab characters that already exist?

crisward commented 5 years ago

This is a setting in your editor and isn't controlled by a syntax highlighter (though you've probably already worked that out)