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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,024
    Answers
    3976
    Vote Rating
    1334
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •