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 trialSean Flanagan
33,235 PointsWorking with 2 web pages
Hi guys and girls.
I'm finding it very cumbersome to work with 2 web pages. I'm writing down my code in Notepad and saving it with a .html file extension. I've created a second web page but I'm constantly switching between the index.html and another_page.html pages. All this is time-consuming and it frustrates me to keep chopping and changing. I notice the tutor could type his code on an html page. Is there any way for me to do the same please?
Thanks
Sean
6 Answers
Pedro Cabral
Full Stack JavaScript Techdegree Student 23,916 PointsYou are probably looking for an editor that allows you to have multiple files open. Since you are working with Notepad, I would suggest Notepad++ for that same effect - plus you will be getting syntax highlighting/folding which will help you along the road.
Dustin Matlock
33,856 PointsIf you have a large monitor you could size your windows. Or you could use multiple monitors as well. If all else fails try some keyboard shortcuts.
Yes, and you'll definitely benefit from using an advanced code editor able to handle multiple file projects and syntax highlighting.
Torger Angeltveit
11,228 PointsHere are some programs you can use if want to have multiple files open at once, Adobe dreamweaver, notepad++, sublime. I prefer notepad++ (easy to install and 100% free)
Sean Flanagan
33,235 PointsHi Pedro, Dustin, Torger. I've downloaded Notepad++. I copied some HTML code into it. I tried running it in Chrome but the browser page was blank. Here's what I wrote:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>My Page</title>
</head>
<body>
</body>
</html>
Presently I'm still getting the hang of Notepad++ but I presume this is what's supposed to happen?
Cheers gentlemen :-)
Sean
Pedro Cabral
Full Stack JavaScript Techdegree Student 23,916 PointsYou are off to a good start but the actual content will go inside the body tag which is empty at the moment.
Sean Flanagan
33,235 PointsThat's all right Pedro. I've left the body tag vacant deliberately as I wanted to understand how to work Notepad++. I see what you mean about the syntax. This is a big improvement on the original Notepad, as I can work with multiple documents and switch between them and I can run the code in the browser.
Thank you all :-D
Sean
Dustin Matlock
33,856 PointsYou might try a neat code editor like Brackets.
Jason Brooks
1,362 PointsI'm a big fan of sublime. Free if you're willing to put up with a reminder to purchase the full license every 5-10 saves.
Sean Flanagan
33,235 PointsI think I've found my niche on Treehouse. Not just because of what I've learned, but because of all the people who have helped me. It's very touching. I've emailed Customer Support and asked them if they can set someplace private up where people can socialise and make friends without divulging sensitive information like email addresses in public.
Thank you.
Sean