Results 1 to 2 of 2

Thread: Make Fiddle always indent with spaces, not tabs (jslint complains)

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2011
    Location
    Chicago, IL
    Posts
    83
    Answers
    3
    Vote Rating
    15
      0  

    Default 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.

  2. 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.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,751
    Answers
    3953
    Vote Rating
    1304
      0  

    Default

    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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •