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

General Discussion

how to create a new folder in TextMate to nestle in my index.HTML

So I am working on the Website Part 1 track. I was able to work on one page in Testmate but now I want to add second page("another_page) within my index.html file. How do I open up new file inside of index.html like I did with workspaces in treeehouse? I tried working in Text Edit first but it seemed so limite

3 Answers

Hi, You can find that answer here(and more): http://manual.macromates.com/en/working_with_multiple_files#find_and_replace_in_projects

But another easy way to add page is simply just open a new file in text mate and save as in the same directory as your index.html file.

Will try...thanks so much!

Kimberly,

The text editor that you choose to use (TextMate, Text Edit, Notepad, PSPad, Sublime, etc.) is not actually where this comes into play; rather, the folder on your computer where you save the files is what matters. In your text editor, simply create a new document and save that new document to the same (or specific) location as the other file that you want to link it to.

Example:

You have your home page built, index.html. You want to link to a page from the home page called "About Me". So, you create a new file with whatever text editor you're using (the Workspaces editor on this site is an advanced option that simply shows the multiple files you have open, but this is not a concern as far as the actual construction of the site or the interaction between pages), build your page, and save the file. Let's say you've created a folder on the desktop of your computer called "My Website". In that folder, you've saved your index.html file. When you go to save your aboutme.html page, you'll want to also save that to the "My Website" folder (for the sake of ease, though you could save it elsewhere and just point to the correct path in your code, but that's a topic for later). In your index.html file, on whatever link you have that goes to your aboutme.html page, simply specify that the href attribute will point to "aboutme.html", and you'll be good to go!

The editor that you use is irrelevant; some have more features than others, but you can do everything in a basic, simple, free editor like TextMate or Notepad that you can in anything more advanced.

Hope this helps!

Erik

Thanks for the detailed explanation. Totally makes sense. I will definitely use this method.