1. #1
    Sencha Premium Member
    Join Date
    Apr 2011
    Location
    Chicago, IL
    Posts
    65
    Answers
    3
    Vote Rating
    11
    ccg will become famous soon enough

      0  

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

    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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,329
    Answers
    3540
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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 @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.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.

Thread Participants: 1