From: David Vallner Date: 2006-11-03T07:49:15+09:00 Subject: Re: Annoying If/Else behavior in SciTE --------------enig4B942D3324FB677F93F4E9EE Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Gavin Kistner wrote: > From: David Vallner [mailto:david@vallner.net]=20 >> Drew Olson wrote: >>> How should I adjust my properties to get this behavior? >>> >> From a cursory glance at ruby.properties, the SciTE autoindentation >> seems rather rudimentary and only supports things like "indent line >> after seeing these words in token stream". >=20 > While this is true, if you open a new SciTE document (without saving it= > as a .rb file and thus letting SciTE treat it as Ruby syntax), the OP's= > if/else/end statement indents correctly. It's only once you go into Rub= y > mode that it gets confused about how to indent. >=20 > So (I suppose) there ought to be a setting to change the indentation in= > Ruby to act like it does in 'normal' mode. >=20 You could comment out the lines in ruby.properties for the statement.indent and statement.end options and handle indentation yourself. Or retrain your fingers to the Pythonesque backspace-on-block-end method. David Vallner --------------enig4B942D3324FB677F93F4E9EE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFSnXny6MhrS8astoRApbEAJ9nAhhKyFbfcKnJ8iM6HzLYZOzHqACfaY0g UJorbiPX1Mf5ft5LkKVB+a8= =oEBN -----END PGP SIGNATURE----- --------------enig4B942D3324FB677F93F4E9EE--