• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Mac Newbie HTML question

 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried proper HTML, something like

Not all browsers are as forgiving as IE in displaying broken HTML.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Kim Kantola
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A large percentage of the staff are Mac users.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And non-staff (although current gig makes me use Windows. XP. With 2G. Running Eclipse/WebLogic.)

*grumble*
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My condolences.
reply
    Bookmark Topic Watch Topic
  • New Topic