enjalot / blockbuilder

Create, fork and edit d3.js code snippets for use with bl.ocks.org right in the browser, no terminal required.
Other
325 stars 58 forks source link

flexible tab / space handling #211

Open ColinEberhardt opened 7 years ago

ColinEberhardt commented 7 years ago

I've just realised that tabs are inserted as ... well ... tabs (yuck). I'd love to be able to configure whitespace handling, or at the very least have the option for visible whitespace so that I know when I've mixed tabs and spaces in the same file.

micahstubbs commented 7 years ago

I like it. the text editor Sublime Text 3 has similar options for configuring how the editor handles whitespace:

screen shot 2017-09-05 at 9 33 30 am

enjalot commented 7 years ago

CodeMirror can be customized to support spaces, but it takes at least a little code: https://github.com/codemirror/CodeMirror/issues/988

I'm not likely to add this myself, but will review a PR that attempts to.