Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Intro to programming video 2

How the hell did he get that page up in chrome? AND how do we get web to show in text mate. Think these things would have been explained instead of assumed in a intro course... http://wpc.a8b5.edgecastcdn.net/80A8B5/treehouse/videos/02-THDD-IntroProg-Basics-WritingYourProgram-360.mp4?514809d2869d73b56fd93d125510035500c5c9da011d1715abd519c3a9afa1d8dc84

3 Answers

same here. Feeling stuck.

In Chrome, in the top menu go to View -> Developer -> Javascript Console.

I mean url

Just create an HTML file. The file needs to end with .html extension. Then save it. Then just open it with Chrome.

Just create an HTML file he says...

I opened TextEdit on the Mac. Created a document from the text that I took out of the video after pausing the screen called testpage and saved it as a .html file. Went to chrome, hit command + O, found the file and opened it. It just showed me the text I typed in without being formatted as a page like was shown in the video.

So, I went back to TextEdit, clicked Format, clicked Make Plain Text, saved and tried to open again in Chrome to have the same thing happen. So, I again went back to TextEdit to change it back and what-would-you-know, it looks like it is supposed to look. Now I am back at square one.

It is not as simple as you seem to make it sound, at least with TextEdit.

It really doesn't matter how the page looks, the formatting is irrelevant, what your suppose to be doing has nothing to do with how the page look. This is for javascript intro programming. As long as you can see the javascript console you're good. If you want to learn how to format take a html/css course offer by Treehouse. Hope this helps. Cheers!

No, it doesn't help because we are also supposed to be following along with the tutorials. If it doesn't format correctly, and doesnt read into the console/browser correctly, then, quite obviously, something is wrong. No offense, but I really don't think you are understanding the actual issue we are both having here.

When starting out a totally new venture (like programming, that is sometimes out of the ordinary for some people, like myself) it gives a sense of completeness and understanding when one can follow along with exactly what is happening on screen...thus, why we are doing video tutorials and not just reading it out of a book. So, in this case, formatting does matter.

What helps is a real solution, which I found.

So, it looks like TextEdit used to work just fine but has become finicky with file creation sometimes. Therefore, I found sublime text 2, its free for evaluation which is unlimited ( http://www.sitepoint.com/a-minimal-html-document-html5-edition/). Type in the same code that he gives in the video around 0:55, save the file as a yourfilename.html. Then, open Chrome, hit command + O, locate the file and it looks just like the one shown in the video.

Then, you can see the code by selecting the View -> Developer -> JavaScript Console.

Using the same Sublime Text 2 program, create another file with the text that starts around 1:25 and save it as yourotherfilename.js in the same folder (I used testprogram.html and myscript.js).

Continue on with the tutorial as he shows making changes to those documents and saving them and you should be good to go. Hope this helps you as it made today much less aggravating when I figured it out.

Gotcha! Well programming is all about problem solving. I'm glad you were able to solve the problem. As you continue to program you will find yourself in situations similar to this where you don't know what the heck is going on, but it's just part of the journey. Whenever you are able to solve a problem and everything works as desired, it's a good damn feeling - it's one of my favorite parts of programming :). Good luck with your programming adventures, Nolan.

Thanks! I wasn't trying to sound like a douche (so I apologize if I was), just frustrated as all hell...which, it sounds like I need to get used to :). This stuff is fun, and if it were easy, everyone would be doing it, but it isn't. It takes time and attention to detail. Thanks again.

Yeah, I cant figure out how he (A) created the html file, (B) opened it in chrome to look like it does