Re: [php-353] Question! Need MAC counterpart to Windows' Notepad to edit and save PHP files

From: Andy
Sent on: Thursday, November 26, 2009 1:02 PM
Hi Linda,

I guess it depends on what you mean by screwed up looking.
If lines are running together, this might be the difference
between Unix style and DOS/ Windows style newlines.  But
almost every editor is good at detecting that these days
and compensating for it.

If it's adding {} type markup for styling, that's rich
text formatting (RTF).

If it's the former, vi will probably do the trick. But I'd
be surprised if TextEdit falls short of that.  Try changing
the Make Plain Text under the Format menu.  Maybe that will
do it.

Andy


Linda Cullen wrote:
> Thank you Andy.  I do use Text Edit on my MAC but when I've saved and reopened the php file, it is all screwed up looking.  I am familiar with VI -- I've been in the technical world for 21 years.  I will gladly try the TextMate application.  It works on MAC?  I'm just curious as to why php files get all unformatted and practically unreadable when you've save them.  Is it a MAC thing?  Would using NotePad on my Windows based desktop solve that problem?  I can try it but maybe it is a php issue in general?
> 
> Linda
> 
> 
> 
> Nov 26,[masked]:28:54 PM, [address removed] wrote:
> 
> ====================­====================­===
> 
> 
> Hi Linda,
> 
> OSX has an app called TextEdit. By default TextEdit
> wants to make files that are RTF.  If you select the
> make plain text option from the encoding menu, you'll
> switch to a more basic text editing mode.
> 
> I find it to be woefully inadequate to do any development with.
> 
> OSX comes with the standard built in Unix editor called vi.
> You can run it from a terminal session.  It's got a long
> history and has crazy features.  Like many Unix style
> things, it's got a less than intuitive character based
> interface (must run in terminal). But with a few bits of
> knowledge it'll be ever bit the basic (or advanced) editor
> you'd want.
> 
> There are many alternatives to vi, but the one I wound up
> using is called TextMate.  It's affordable commercial
> software.  A single user license is $61 USD.  TextMate is
> a very powerful editor, but is also great for basic stuff
> and has a very adequate and intuitive user interface.
> 
> So here's how I'd decide if I were in your shoes:
> 
> If you're just sitting down at an OSX box from time to time
> and need to to edit files, TextEdit will probably do.
> But if you need any kinda of advanced features like
> syntax highlighting, good multi file support, the ability to
> jump to a particular line, etc consider  learning VI or
> buying something like text mate.
> 
> If you're new to OSX, and text edit does not fire up when
> simplly clicking on a PHP file, then right click on the file
> in Finder, and choose 'get info'.  From there you can set
> the application you want to use when clicking on a php file.
> Be sure to select 'Change All' when doing this so any php
> file will open in TextEdit when clicked on in finder.
> 
> Hope this helps.
> 
> Andy
> 
> 
> Linda Cullen wrote:
>> Hello Meetup Members!
>>
>> I'm new to PHP but a long-time developer.  I'm guessing you all know about this but how in the world do I edit and save php files on a MAC?  I don't want any of the freeware editing/"CMS" applications.  I just want the most simple, no-frills, no built-in functionality available, like Notepad.  Thank you in advance for any information you may share.
>>
>> Linda
>>
>>
>>
>> --
>> Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
>> http://www.meetup...­
>> This message was sent by Linda Cullen ([address removed]) from The Philadelphia Area PHP Meetup Group.
>> To learn more about Linda Cullen, visit his/her member profile: http://www.meetup...­
>> To unsubscribe or to update your mailing list settings, click here: http://www.meetup...­
>> Meetup Inc. PO Box 4668 #37895 New York, New York[masked] | [address removed]
>>
> 

-- 

====================­====================­=======
xforty technologies
Andrew Libby
[address removed]
http://xforty.com­
[masked]
====================­====================­=======

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy