When viewing/editing source, would be nice select the tab size. Currently it's 8 spaces, but not everyone use so many and source looks ill formatted.

Thank you.

For now we can change it globally for all scripts with:

var editor = ace.edit("editor");
editor.getSession().setTabSize(2);

But would be nice have ability change it per script or at least have a choice when viewing script's source.

Re: @vanowm:

would be nice have ability change it per script or at least have a choice when viewing script's source.

Haven't fiddled with Ace much ay ;) ... use Ctrl + ,.

Currently it's 8 spaces

Default size is 4 here.

Re: @Marti:
Oh wow. Thank you. Didn't know that.
Unfortunately though it doesn't remember the setting, after refresh it reverts to default?

Re: @vanowm:

Thank you. Didn't know that.

Welcome. :)

Unfortunately though it doesn't remember the setting, after refresh it reverts to default?

Correct.

... but not everyone use so many...

Or so little... although my preference is 2... to keep the code minimal, plus we're still migrating away from jQuery, it may not happen... but if you want to put a request issue for it on Development (In the links at the bottom of every page). I'll add it as an enhancement label but it will need votes with +1, -1, 0, -0, +0, etc. ... or :+1: if emoticons. GH has reactions as well. If it becomes stale then it will eventually be closed as Intended Behavior... you can read up on most of the labels at CONTRIBUTING.md.