Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Handcoding on a mac...

Handcoding on a mac...
Thread Tools
Fresh-Faced Recruit
Join Date: Jan 2004
Status: Offline
Reply With Quote
Apr 28, 2004, 05:57 PM
 
Err, sorry this is probably such an easy question, but I've recently switched over to a mac from windows. I'm used to opening notepad and handcoding html and saving it as whatever.html, then uploading that. I can't do that on a mac, so what do I do if I want to handcode something?

Sorrrryyy!
     
Senior User
Join Date: Oct 2002
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Apr 28, 2004, 06:20 PM
 
Originally posted by daaaarla:
Err, sorry this is probably such an easy question, but I've recently switched over to a mac from windows. I'm used to opening notepad and handcoding html and saving it as whatever.html, then uploading that. I can't do that on a mac, so what do I do if I want to handcode something?

Sorrrryyy!
Why can't you do that with OSX? Fire up TextEdit, code your PHP/HTML, File/Save As, type your filename and extension, then click "Use .php" or "Use .html" when prompted about the change of extension.

Alternatively you can use a syntax coloured editor such as skEdit, etc.
     
Fresh-Faced Recruit
Join Date: Jan 2004
Status: Offline
Reply With Quote
Apr 28, 2004, 06:33 PM
 
I tried doing so in TextEdit, but it kept saying it had to be saved as .rtf and not .html ..or, you can use both and it'll end up looking like: file.html.rtf
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Apr 28, 2004, 06:45 PM
 
TextEdit can save as plain text (and thus HTML), but it can be a bit of a pain. I'd recommend the excellent SubEthaEdit instead, if you need something free.

If you can shell out the money, nothing on any platform beats Bare Bones Software's BBEdit, but BBEdit doesn't come cheap. SubEthaEdit gets the job done quite well, however, and the price is right.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status: Offline
Reply With Quote
Apr 28, 2004, 06:46 PM
 
IIRC, you need to screw around with TextEdit's preferences to keep it from rendering your html as a page and to get it to play nicely with html pages.

I use BBEdit, but it's a bit spendy, and there are now some powerful, cheaper alternatives like the terrific subethaedit. It colors your tags automagically, so that might even make your life easier.
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Apr 28, 2004, 11:45 PM
 
Taco HTML Edit is free. That's what I use.
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Apr 29, 2004, 04:40 AM
 
Originally posted by wataru:
Taco HTML Edit is free. That's what I use.
i bet you used Fink to install that, right?

vim is also free. it is already installed when you boot your machine up. as is pico.
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Professional Poster
Join Date: Jan 2003
Status: Offline
Reply With Quote
Apr 29, 2004, 05:19 AM
 
Originally posted by daaaarla:
I'm used to opening notepad and handcoding html and saving it as whatever.html, then uploading that. I can't do that on a mac, so what do I do if I want to handcode something?
You could use Microsoft Word:

1. File: Project Gallery...: Web Page
2. View: HTML Source

Not the best HTML editor, but if you already have Office.x it's free.
     
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status: Offline
Reply With Quote
Apr 29, 2004, 05:22 AM
 
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Apr 29, 2004, 08:07 AM
 
I am also going to add my recommendation for SubEthaEdit, it is the most elegant. But if you are doing a lot of PHP work, I would also recommend HyperEdit as it has live preview for PHP. I really wish that SubEthaEdit would open-source so that I could add this (and a few other) features to it.

Two other notes for you:
You will want to check out VersionTracker as you can then find applications for yourself. (Freshmeat.net is good if you are looking for command line stuff).

If you do anything with XSLT, you will want to check out TestXSLT, another fine application.
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Apr 29, 2004, 09:01 AM
 
Might I suggest even Mozilla Composer (built in with Mozilla) - fast and free (and includes basic WYSIWYG mode too, if you aren't 100% on hand-coding)

     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Apr 29, 2004, 10:13 AM
 
Originally posted by philzilla:
i bet you used Fink to install that, right?

vim is also free. it is already installed when you boot your machine up. as is pico.
If I could I would

Also note that an improved version of pico, called "nano," is available via... you guessed it... FINK!
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Apr 29, 2004, 10:15 AM
 
Originally posted by f1000:
You could use Microsoft Word:
Don't make me smack you...

SubEthaEdit is the way to go.
You know it makes sense. ☼ ☼ ☼ Growl.
     
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status: Offline
Reply With Quote
Apr 29, 2004, 10:44 AM
 
     
Professional Poster
Join Date: Jan 2003
Status: Offline
Reply With Quote
Apr 29, 2004, 04:40 PM
 
Originally posted by Diggory Laycock:
Don't make me smack you...
http://65.24.81.11/sounds/FX/spank_me.mp3

     
Senior User
Join Date: Oct 2002
Location: Adelaide, South Australia
Status: Offline
Reply With Quote
Apr 29, 2004, 06:48 PM
 
Originally posted by registered_user:
IIRC, you need to screw around with TextEdit's preferences to keep it from rendering your html as a page and to get it to play nicely with html pages.
Ah yes forgot about that - you need to turn off the HTML and RTF rendering options in TextEdit plus set the default format to text (though ever since Panther TextEdit has a bug whereby when first started the text mode will have RTF margins until you toggle to RTF then back to text).
     
Mac Enthusiast
Join Date: Jan 1999
Location: Marietta, GA, USA
Status: Offline
Reply With Quote
May 3, 2004, 02:03 PM
 
If you like BBEdit, try jEdit. Similar in features, and free to boot...
Scott Genevish
scott AT genevish DOT org
     
Junior Member
Join Date: Aug 2002
Location: boston
Status: Offline
Reply With Quote
May 3, 2004, 02:17 PM
 
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
May 4, 2004, 08:39 AM
 
Originally posted by wataru:
Also note that an improved version of pico, called "nano," is available
nano? i wonder why they changed the name? hmm.

as an aside, if you want syntax colouring in vim, drop the following into ~/.vimrc
Code:
syntax on set shiftwidth=1 set cindent map <F1> <esc> set showmatch set comments+=s:/*,mb:**,ex:*/ highlight Comment term=bold ctermfg=green ctermbg=none highlight Constant ctermfg=white ctermbg=none highlight Identifier ctermfg=cyan ctermbg=none highlight Statement ctermfg=yellow ctermbg=none highlight Type ctermfg=red ctermbg=none highlight Todo ctermfg=white ctermbg=red
that assumes you have a black window with green text, like a proper nerd
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
May 4, 2004, 11:44 AM
 
Originally posted by philzilla:
nano? i wonder why they changed the name? hmm.
"They" didn't. nano is made by a different group. The original goal was to clone pico, which is licensed under terms some find unpalatable. Once that was done, they started adding features.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Registered User
Join Date: Sep 2002
Location: New York City
Status: Offline
Reply With Quote
May 5, 2004, 04:49 AM
 
You could also open the "Terminal" app and use "vi" (I don't think I saw anyone mention this, so I thought I'd add it)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2