 |
 |
Handcoding on a mac...
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jan 2004
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
Taco HTML Edit is free. That's what I use.
|
|
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
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
|
|
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
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
Originally posted by f1000:
You could use Microsoft Word:
Don't make me smack you...
SubEthaEdit is the way to go.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Paris, France
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Jan 2003
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2002
Location: Adelaide, South Australia
Status:
Offline
|
|
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
|
|
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
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
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
|
|
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
|
|
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)
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|