Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2002 08:52:07 +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:  <20020612084451.V92282-100000@server.hermes-comp.zp.ua>
In-Reply-To: <5.1.1.6.0.20020612152823.00b88f00@wheresmymailserver.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Greetings!

On Wed, 12 Jun 2002, Jacob Rhoden wrote:

> Hi,
>
> I have two rather large javascript files which are almost identical
> (someone has formatted and put different spacing in one of them) there has
> been a minor change to the source, but I cannot find it with diff (due to
> the different formatting).
What You mean under formatting (just indentation or something more,
like capitals in variable name or so)?

>
> Do you know any program which may help me format it? I have searched
> freebsd.org/ports and couldnt find anything useful . . . any ideas?
This is program You already have and it is called UNIX. Try to cat(1)
your files through sed(1) to eliminate all whitespaces on lines
beginning and then through tr(1) to change all letters to lower-case.
Then diff must work.

>
> Thanks,
> Jacob
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


[Orgn] UNIX - exciting tool to make an elephant from a fly.

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?20020612084451.V92282-100000>