19 Feb 2014 1:54 PM #1
Answered: Make Fiddle always indent with spaces, not tabs (jslint complains)
Is there a way to make the code editor in Fiddle always insert spaces instead of tabs when indenting code? Is this somehow browser specific? I'm using the latest Google Chrome on Mac OS X 10.9.
I've been working with Sencha Fiddle for a couple hours today, and it seems to switch randomly between spaces and tabs, sometimes in the same line. I haven't yet figured out what the pattern is.
Besides being kind of ugly, it means that as soon as you start writing code, if you switch to the JSLint tab and run JSLint, you get tons of messages like `(error) - line 12 - Use spaces, not tabs.`, and they get in the way of seeing more serious errors.
This is CodeMirror handling it (and kind of crappy). We are actually looking to switch to Ace editor which I've been working with on another project and have been liking it much better.
21 Feb 2014 1:11 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
This is CodeMirror handling it (and kind of crappy). We are actually looking to switch to Ace editor which I've been working with on another project and have been liking it much better.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.