Re: Where is editor that will Indent my perl code?
Randal L. Schwartz wrote: Hence, the maxim: Nothing can parse Perl but /usr/bin/perl. Hmmm, that's strange. Until a couple of days ago, I had no usr directory anywhere on my system, yet the Perl interpreter seems to work just fine. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where is editor that will Indent my perl code?
Emacs running in CPerl mode does it pretty well. But Emacs has a steep learning curve and you have to install CPerl mode (it's not the default). -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where is editor that will Indent my perl code?
Richard Heintze [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Is there an editor out there that will properly indent my perl code even if I use the stranger syntaxes for literal strings? Thanks, Siegfried HTML-Kit has color highlighting and a perl-tidy plugin. Give it a look. FTP is nicely integrated. ~h -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where is editor that will Indent my perl code?
Richard Heintze wrote: emacs and a number of other editors have the ability, with a single key stroke to properly indent java code. However, since perl has such unusual syntax for specifying literal character strings (my favorite is qq[]) emacs chokes when it attempts to indent my perl code. Too bad -- I love emacs. Is there an editor out there that will properly indent my perl code even if I use the stranger syntaxes for literal strings? http://fte.sf.net is the editor I use for perl. You tell me if it handles your stranger syntaxes ;-) (And, if it doesn't, show me the code that it doesn't handle and I'll see if I can devote time to fixing it, or if it's simply too esoteric to fuss over. ;-) I guess I've adapted my perl indentation style to match what FTE does, which isn't, I suppose, necessarily the right way. But since all my team members use FTE to write perl code, we all get the same indentation, which is always a good thing. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where is editor that will Indent my perl code?
henq [EMAIL PROTECTED] wrote: : HTML-Kit has color highlighting and a perl-tidy plugin. : Give it a look. FTP is nicely integrated. So does UltraEdit (UltraEdit.com). Ian is always updating and perl-tidy is very customizable. HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where is editor that will Indent my perl code?
Richard == Richard Heintze [EMAIL PROTECTED] writes: Richard Is there an editor out there that will properly indent Richard my perl code even if I use the stranger syntaxes for Richard literal strings? It's never *completely* possible to parse Perl code outside of running some of the Perl code with perl, including all the include files. For an examination on this, see: http://www.perlmonks.org/index.pl?node_id=44722 Now, can you get close? Yes. Will there be times that it'll be wrong? Certainly, proof included there. Hence, the maxim: Nothing can parse Perl but /usr/bin/perl. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where is editor that will Indent my perl code?
emacs and a number of other editors have the ability, with a single key stroke to properly indent java code. However, since perl has such unusual syntax for specifying literal character strings (my favorite is qq[]) emacs chokes when it attempts to indent my perl code. Too bad -- I love emacs. Is there an editor out there that will properly indent my perl code even if I use the stranger syntaxes for literal strings? Thanks, Siegfried __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where is editor that will Indent my perl code?
PerlBuilder's syntax highlighting works very well, but it's also more expensive than many of the other alternatives. Have you tried vim? -Original Message- From: Richard Heintze [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: Where is editor that will Indent my perl code? emacs and a number of other editors have the ability, with a single key stroke to properly indent java code. However, since perl has such unusual syntax for specifying literal character strings (my favorite is qq[]) emacs chokes when it attempts to indent my perl code. Too bad -- I love emacs. Is there an editor out there that will properly indent my perl code even if I use the stranger syntaxes for literal strings? Thanks, Siegfried __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where is editor that will Indent my perl code?
Tim (or anyone else) I have vim 6.1 and tried it out. I know VI (a little) so I thought vim would not be so bad. I tried help and searching help for indent and found it. It looks more like a function call for their macro language than it does a command. I tried :indent(6) and it did not work. How do I use VIM to re-indent a perl function? Also, I assume by your response that PerlBuilder indents code too? Thanks, Siegfried --- Tim Johnson [EMAIL PROTECTED] wrote: PerlBuilder's syntax highlighting works very well, but it's also more expensive than many of the other alternatives. Have you tried vim? -Original Message- From: Richard Heintze [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: Where is editor that will Indent my perl code? emacs and a number of other editors have the ability, with a single key stroke to properly indent java code. However, since perl has such unusual syntax for specifying literal character strings (my favorite is qq[]) emacs chokes when it attempts to indent my perl code. Too bad -- I love emacs. Is there an editor out there that will properly indent my perl code even if I use the stranger syntaxes for literal strings? Thanks, Siegfried __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where is editor that will Indent my perl code?
Tim, If your using windows and want to use a version of Vi goto the following: http://www.winvi.de/en It really works just like vi and is great so you can Use :set numbers commands so you can see which line Your errors occur in. Use vi is a standard editor in every unix system but Emacs is also a good editor but takes far too much Memory and disk spaces for my needs. Phillip -Original Message- From: Richard Heintze [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:55 AM To: Tim Johnson; [EMAIL PROTECTED] Subject: RE: Where is editor that will Indent my perl code? Tim (or anyone else) I have vim 6.1 and tried it out. I know VI (a little) so I thought vim would not be so bad. I tried help and searching help for indent and found it. It looks more like a function call for their macro language than it does a command. I tried :indent(6) and it did not work. How do I use VIM to re-indent a perl function? Also, I assume by your response that PerlBuilder indents code too? Thanks, Siegfried --- Tim Johnson [EMAIL PROTECTED] wrote: PerlBuilder's syntax highlighting works very well, but it's also more expensive than many of the other alternatives. Have you tried vim? -Original Message- From: Richard Heintze [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:28 AM To: [EMAIL PROTECTED] Subject: Where is editor that will Indent my perl code? emacs and a number of other editors have the ability, with a single key stroke to properly indent java code. However, since perl has such unusual syntax for specifying literal character strings (my favorite is qq[]) emacs chokes when it attempts to indent my perl code. Too bad -- I love emacs. Is there an editor out there that will properly indent my perl code even if I use the stranger syntaxes for literal strings? Thanks, Siegfried __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where is editor that will Indent my perl code?
On Mon, Nov 03, 2003 at 11:54:38AM -0800 Richard Heintze wrote: Tim (or anyone else) I have vim 6.1 and tried it out. I know VI (a little) so I thought vim would not be so bad. I tried help and searching help for indent and found it. It looks more like a function call for their macro language than it does a command. I tried :indent(6) and it did not work. How do I use VIM to re-indent a perl function? Indenting usually happens automatically when you put 'set autoindent' into /etc/vimrc (or whereever your vim looks for its configuration, possibly also ~/.vimrc). Re-indenting happens by marking a paragraph in visual mode (shift+v and then moving around with the arrow keys) and hitting '='. Also, I assume by your response that PerlBuilder indents code too? You don't need that. vim has excellent indenting and syntax-highlighting. The same is said to be true for the cperl mode of emacs. Tassilo -- $_=q#,}])!JAPH!qq(tsuJ[{@tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({ pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#; $_=reverse,s+(?=sub).+q#q!'qq.\t$.'!#+sexisexiixesixeseg;y~\n~~;eval -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where is editor that will Indent my perl code?
My personal choice is Nedit. I use it for the syntax highlighting as well. Robert On Mon, 03 Nov 2003 11:27:33 -0800 (PST) Richard Heintze [EMAIL PROTECTED] wrote. emacs and a number of other editors have the ability, with a single key stroke to properly indent java code. However, since perl has such unusual syntax for specifying literal character strings (my favorite is qq[]) emacs chokes when it attempts to indent my perl code. Too bad -- I love emacs. Is there an editor out there that will properly indent my perl code even if I use the stranger syntaxes for literal strings? Thanks, Siegfried __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]