CLI text editor recommendation

Philip Hallstrom freebsd at philip.pjkh.com
Wed Sep 13 10:08:45 PDT 2006


> 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
-------------------------------------------------------------------



More information about the freebsd-questions mailing list