aspose file tools*
The moose likes Mac OS and the fly likes Mac Newbie HTML question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Mac Newbie HTML question" Watch "Mac Newbie HTML question" New topic
Author

Mac Newbie HTML question

Kim Kantola
Ranch Hand

Joined: May 17, 2001
Posts: 274
Hi All,
I am not sure if this is a Mac question or a browser question. On my Dell PC I am used to creating HTML files using a text editor, and then viewing them in IE. I will create a file something like this :


I will name the file abc.html. Then, if open the file with IE, I see a plain page with just "ABC" displayed.
When I do the same thing on my mac, when I open the file using Safari or Firefox, I see the html tags displayed, not just the "ABC" as I would expect.

Is there a setting somewhere in the Mac System Preferences that I need to tweak?

Thanks,
Kim
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41885
    
  63
Have you tried proper HTML, something like

Not all browsers are as forgiving as IE in displaying broken HTML.


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61227
    
  66

Also, what are you using to create the file? Check to make sure that you are actually creating a plain text file, not RTF or some other formatted content.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kim Kantola
Ranch Hand

Joined: May 17, 2001
Posts: 274
Yes, I used the html just as you described, I rechecked it to make sure I didn't have any typo's but can't see any, posting the file here :


Also, I am using the application "Text Edit". When I save the file I save it as type "HTML".

Thank you for your responses so far, any other idea's of things I could look at?
Thanks!
Kim
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61227
    
  66

TextEdit, by default, will create RTF files. Have you changed the format to plain text?

(It's under the Format menu...)

To test, you can cat the file in the Terminal app.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61227
    
  66

P.S. TextEdit, not the best tool to use.

I'd recommend a real text editor like Text Wrangler (free) or any of the thousands of HTML editors available...
Kim Kantola
Ranch Hand

Joined: May 17, 2001
Posts: 274
Thanks guys!
I found a great website that explained my problem, and then got back on here to post it to find that you had already done so! I thought the selecting file type of HTML in the "save as" menu was all i needed, I didnt realize I needed to go into the preference page of Text Edit to remove the rich text formatting.

It is explained very clearly here :
TextEditInfo

This article also reccomends getting the same text editor that you recommend for the mac, so I am going to do that now.


Thanks! I am doing some html work and also some iphone work on my new Mac and was saddened to no longer have my favorite resource of JavaRanch to help me, I was so happy to find that javaranch has this Mac page !!! Javaranch is the best.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61227
    
  66

A large percentage of the staff are Mac users.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And non-staff (although current gig makes me use Windows. XP. With 2G. Running Eclipse/WebLogic.)

*grumble*
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61227
    
  66

My condolences.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mac Newbie HTML question