Date: Wed, 13 Sep 2006 13:24:42 -0400 From: "Andy Greenwood" <greenwood.andy@gmail.com> To: "Philip Hallstrom" <freebsd@philip.pjkh.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: CLI text editor recommendation Message-ID: <3ee9ca710609131024u5c145a3bldda810cad5aa5470@mail.gmail.com> In-Reply-To: <20060913121116.H30246@bravo.pjkh.com> References: <3ee9ca710609130925i415eca35v483f6ee5421e1125@mail.gmail.com> <20060913121116.H30246@bravo.pjkh.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the advice everyone. I will certainly check out my php and see if I can figure out why it's giving me errors as-is. On 9/13/06, Philip Hallstrom <freebsd@philip.pjkh.com> wrote: > > I need a CLI text editor I can use over ssh, which does NOT append > > newlines to the end of files as I save them. I am using this to edit > > PHP files, and my PHP doesn't like newlines outside the last ?>. ee > > and vi both do so, I tried nano which also does the same. I haven't > > installed emacs to try that yet, since the man page says that it also > > does the same thing. Does anyone have any ideas? > > Not an editor, but why not just do this: > > ------------------------------------------------------------------- > <?php > > # php code here > > # note no last ?>. php will treat the rest of the file as php > ------------------------------------------------------------------- > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ee9ca710609131024u5c145a3bldda810cad5aa5470>