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

The simplest things are often the hardest

How does a text editor connect to the browser outside of this website?

I was doing a cupcake website example build in first track of html & css where we named the project index.html... I downloaded sublime text editor onto my computer and was able to follow along with my own build.... In the beginning I was able to refresh my browser in real time to see progress of work I was doing outside of this website.... now I cant for some reason.

How does the text editor connect to browser in real time? What or is there a best way and place to store things when building to make it easier to access? How do you or is there a way too rename what needs to be typed into url to see things

I feel like I need to get set up properly and understand the little things upfront before being able to fully grasp what I'm doing later on. If I cant make it work in real life then whats the point.

Please help! Thanks

4 Answers

Josef Coban
Josef Coban
7,260 Points

Hey Jason, As far as I know, unless you are using a text-editor with a live-preview, a text editor doesn't connect to the browser in real time. Using the text editor , you make an html (or css, javascript..etc) file, which you then save on your computer. After the file is saved you can use a browser of your choice to open the the file that you created and view it in the browser. When you make changes to the file with a text editor, you will then need to save the file, and refresh the browser for the updates to appear. . Also note that this does not mean that the page is published and can be accessed through an internet URL. You can use your browser to search for and find the file locally on your computer (or simply right-clicking on the file and selecting open-with( e.x. Chrome)), however it is not on the web.

Gotcha, I just read and figured it out on w3 website as you responded. So what if you wanted too not have it saved directly on your computer though?.. or accessible on the internet instead?

Josef Coban
Josef Coban
7,260 Points

Well I suppose you could use some sort of cloud storage to save the file to so that it can be retrieved from another computer, but that still doesn't exactly "publish" the site and you would have to access it the same way as if it was stored locally. To have your file accessible online as a web page you need to first have all the files you need, and upload them to a hosting server using an FTP client, which basically just takes the html files you want and uploads them to a hosting server (which you will have to choose and pay for depending on what hosting package you want) so that those files become published and accessible by anyone with an internet connection, using the URL that you get through the hosting company.

Gotcha... Thank you