🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2629

Re: Editor que indenta?

#2629
From: Ricardo Lemus
Date: Sat, 15 Oct 2005 11:05
30 lines
2142 bytes
Miguel Farah F. <NOmigSPuelAM@lj.cl> dijo:
> Jcastro <eng3d@softhome.net> wrote:
> >En visual basic tengo un programa que indenta un codigo automaticamente
> >y lo deja ordenado.  Existe algo asi para otros lenguajes?. para c,php,
> >etc.?
> >
> >Por ejemplo el codigo :
> >
> >for i=1 to 10
> >print i
> >next
> >
> >lo indenta
> >for i=1 to 10
> >    print i
> >next

> Quieres un programa que indente codigo fuente o un editor que lo haga
> mientras escribes el codigo? Si es lo ultimo, la mayor parte de los
> editores modernos lo hace.

Si es por lo primero, existe un programa llamado ... 'ident' que identa
hasta con distintos profiles, a lo C duro, a lo K&R, etc etc etc.

-- 
Ricardo J. Lemus C. [Linux-user: 54183] [rlemus[@]dcc.uchile.cl.NOALSPAM]
Facultad de Ciencias Fisicas y Matematicas    Universidad de Chile 
"Laziness is a very important system administrative virtue" from
Essential System Administration, 2nd Ed. by AEllen Frisch, O'Reilly &
Associates, p. 342.
Technical Details
Message-ID: <diqnpj$85q$2@helcaraxe.dcc.uchile.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!nntp-server.pubsub.com!news1.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!not-for-mail
References: <1129333986.084650.196450@g14g2000cwa.googlegroups.com> <4350dd71@news.vcd.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,4147b56c779bc935
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!nntp-server.pubsub.com!news1.nivel5.cl!news.cec.uchile.cl!helcaraxe.dcc.uchile.cl!not-for-mail
From: Ricardo Lemus <rlemusSACAESTO@SINESTOdcc.uchile.cl>
Newsgroups: chile.comp.programacion
Subject: Re: Editor que indenta?
Date: Sat, 15 Oct 2005 11:05:23 +0000 (UTC)
Organization: DCC - Universidad de Chile
Lines: 30
Sender: Ricardo Lemus <rlemus@anakena.dcc.uchile.cl>
Message-ID: <diqnpj$85q$2@helcaraxe.dcc.uchile.cl>
References: <1129333986.084650.196450@g14g2000cwa.googlegroups.com> <4350dd71@news.vcd.cl>
NNTP-Posting-Host: anakena.dcc.uchile.cl
X-Trace: helcaraxe.dcc.uchile.cl 1129374323 8378 192.80.24.6 (15 Oct 2005 11:05:23 GMT)
X-Complaints-To: newsmaster@dcc.uchile.cl
NNTP-Posting-Date: Sat, 15 Oct 2005 11:05:23 +0000 (UTC)
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (Linux/2.6.10-gentoo-r6 (i686))