4 ms·
I kind of feel that source code needs to take a tip from HTML and apply a style-sheet. Have editors parse the code and display according to the user's preferenc
by billpg 7y ago
I kind of feel that source code needs to take a tip from HTML and apply a style-sheet. Have editors parse the code and display according to the user's preferences.
- kranner 7y agoExactly. Maybe a browser extension to pretty-print spaces to tabs, or sites like Github/SO can offer a built-in option.
- billpg 7y agoI'd go even farther than that. Prefer {}, BEGIN/END or indented code? Prefer && and || or AND and OR? Prefer infix a+b+c or LISP style +(a,b,c)? Pick one and the editor will show and edit code that way. The underlying code files remain unchanged.
- swerner 7y agoAbsolutely. Not just tabs vs spaces, but also camel case vs underscore, line length, etc.
- robin_reala 7y agoTalking of which, here’s the little-used CSS rule tab-size: https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size https://developer.mozilla.org/en-US/docs/Web/CSS/tab-size
- deleted 7y ago[deleted]