Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AFPoster

macrumors 68000
Original poster
Jul 14, 2008
1,565
152
Charlotte, NC
I basically wrote this line of code in Text/Edit:
Code:
<html>
<head></head>
<body>hello world</body>
</html>

When I save as HTML and open it in Chrome, FireFox or Safari it just shows the code and not hello world. Any ideas? Also TextWrangler I can do the same code and it works perfectly. I'd just rather use Text/Edit if possible.
 
Don't use TextEdit, it's not really the best for that.

As for that code, the reason it's not working is probably that you have TextEdit still in Rich Text Mode. Go to Format -> Make Plain Text, and make sure you save it with the .html extension.

jW
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.