p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning HTML, XHTML, CSS, and JavaScript (http://p2p.wrox.com/forumdisplay.php?f=541)
-   -   Chapter 1 - Saving index.html in Text Edit - Snow Leopard (http://p2p.wrox.com/showthread.php?t=90905)

RhettBice September 8th, 2013 09:35 PM

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?

RhettBice September 9th, 2013 06:16 AM

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.

bitnap September 9th, 2013 09:44 AM

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

RhettBice September 21st, 2013 09:18 PM

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.


All times are GMT -4. The time now is 11:47 AM.

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