Date: Wed, 12 Jun 2002 09:11:00 +0300 (EEST) From: Alexander V Zubchenko <stalker@hermes-comp.zp.ua> To: Jacob Rhoden <f3z@iprimus.com.au> Cc: <freebsd-questions@freebsd.org> Subject: Re: OT: Javascript source code formatting Message-ID: <20020612090635.W92467-100000@server.hermes-comp.zp.ua> In-Reply-To: <5.1.1.6.0.20020612160834.00bbbe30@mail.iprimus.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Greetings! On Wed, 12 Jun 2002, Jacob Rhoden wrote: > >What You mean under formatting (just indentation or something more, > >like capitals in variable name or so)? > > Unfortunately its not that simple, braces have moved lines, and the number > of spaces in front of each line has changed as well (by 2,3 or 4 spaces - > *sigh*). Number of spaces is not a problem. Use regexp's (like '^[<space><tab>]*'). But with lines it is not a formatting. The way i see is similar to 'compile and check result'. I don't know how to achieve this with js, sorry. But, if You provide some examples, i'll try to solve it. Alexander V Zubchenko, E-Mail: stalker@hermes-comp.zp.ua System Administrator, WWW: http://www.hermes-comp.zp.ua/ Hermes-comp, Ukraine, Zaporizhzhya, Geroev Stalingrada 50 phone/fax: +380 612 64-19-72 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020612090635.W92467-100000>