Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > BOOK: Beginning HTML, XHTML, CSS, and JavaScript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning HTML, XHTML, CSS, and JavaScript
This is the forum to discuss the Wrox book Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett; ISBN: 978-0-470-54070-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning HTML, XHTML, CSS, and JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 8th, 2013, 09:35 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Location: Brooklyn
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 1 - Saving index.html in Text Edit - Snow Leopard

Total newbie problem here:

Text edit defaults to saving documents in rtf. I did that and manually changed the extension to html before opening it in Firefox. It displayed with forward slashes at all of the line breaks.

I tried saving it in every other format option as well, including converting to simple text, and then manually changing the extension. Not one of them displays properly in Firefox.

Has anyone else encountered this problem? How do I resolve it? Thanks so much. Any other City Tech students on here?
Reply With Quote
  #2 (permalink)  
Old September 9th, 2013, 06:16 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Location: Brooklyn
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Text Wrangler

After some additional messing around with Text Edit like selecting the ignore rtf selection in the preferences and it still having the same problems then I did a quick online search and decided to try Text Wrangler. It worked immediately. SO firk'n firk you Apple for making me waste my time with your f'd up text editor.
Reply With Quote
  #3 (permalink)  
Old September 9th, 2013, 09:44 AM
Authorized User
Points: 105, Level: 2
Points: 105, Level: 2 Points: 105, Level: 2 Points: 105, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2010
Posts: 19
Thanks: 0
Thanked 4 Times in 4 Posts
Default

It sounds like TextEdit might be in rich text mode, not plain text. Hopefully the following might help:

+ In TextEdit on your mac, open a new page and go to the format menu, then select "make plain text" - if the document is rich text it will not work. You can also go to the preferences option and under the new document section, where it says format you can select plain text (this means all new documents open as plain text rather than rich text).

+ Then, can you look in Finder, and make sure that the file you have created has the .html extension? If it says .rft or .txt then it has not saved as an HTML file (you need to write the .html file extension when saving the file).

+ Also, go to the Preferences window (from the textedit menu) and check again in the Open And Save tab, to make sure the tick box next to "ignore rich text commands in HTML files" is still selected.

You might also like to try Sublime Text - it is a very nice code editor. http://www.sublimetext.com
Reply With Quote
  #4 (permalink)  
Old September 21st, 2013, 09:18 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2013
Location: Brooklyn
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thanks but it still doesn't work.

Thanks for your reply. I actually tried all of those options you suggested before going to the forum and then again tonight just to make sure I didn't miss anything and yup Text Editor still sucks for writing HTML. Good thing for Text Wrangler. I still would like to use Text Editor if someone can tell me why it won't save a file in a browser friendly format.

I suppose there's a chance I'm still doing something wrong but I need a succinct answer explaining clearly step by step exactly what to do.

The funny thing is it will save html format and it will ignore rich text commands in HTML files but they open as source code instead of showing me how the page looks in the browser.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL for saving record value when knowing index # of selected Recordset innovationsindm Forum and Wrox.com Feedback 3 January 16th, 2014 02:09 AM
Saving text box text to a file AlexW ASP.NET 4 General Discussion 4 May 20th, 2011 11:30 AM
Beginning OS X Snow Leopard Programming ogee BOOK: Beginning Mac OS X Programming 5 May 5th, 2010 05:02 PM
Chapter 12 - text input fields don't allow HTML rdwheless1 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 October 18th, 2006 01:04 PM



All times are GMT -4. The time now is 02:09 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.