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

Development Tools

index.html stopped responding to changes

I'm using Sublime Text 2, as recommended by TreeHouse, while I do the HTML/CSS course. Currently I'm on the 'Working with Grids' section and after the normalize.css step, refreshing to see the changes on index.html doesn't show further grid changes.

Is there are reason this would be happening? Either the code must be wrong or the editor, for some reason, isn't actually saving changes. I suppose I'll attempt to reinstall the editor.

10 Answers

James Barnett
James Barnett
39,199 Points

On Windows notepad++ or OS X text wrangler are 2 good choices, both of which are free.

James Barnett
James Barnett
39,199 Points

Adam -

Personally I've never been able to figure out why Treehouse recommends using a trial-version of a text editor when there are several highly suitable free alternatives.

samiff
samiff
31,206 Points

Just to doublecheck, have saved both the html and css files before refreshing?

Also, you can simply test if your html document is correctly connected to your css files by adding a rule to the bottom of a css file in question like

* {border: 2px dotted red;}

Which will add an obvious small border around all page elements. I doubt your code editor is the issue here, it's either an error in the code, or file locations are mixed up.

Carrie Gildersleeve
Carrie Gildersleeve
9,609 Points

I have also been having problems with the Sublime Text 2. It seems my un-timed trial ended during the first lesson. Is there another text editor we can use for this?

samiff
samiff
31,206 Points

That sounds weird to me. If you're on Windows, I really like using Notepad++. I'm sure someone can chime in with an alternative Mac recommendation. I've also played with http://brackets.io/ but it's still being developed.

Carrie, you should still be able to use it despite it asking for a license to be purchased. However if you're keen on using it a lot I don't think the license is too pricey.

Notepad++ is a nice alternative I've used on the past.

AdamC, have you tried clearing the cache/history in your browser settings? That said, when adding in the normalize stylesheet link you'll not see a great deal of change. It just removes a small amount of padding and margin and resets the font family. As mentioned, try adding a universal css rule to the bottom of the normalize css file and check it's seen working (don't forget to remove it).

"it's either an error in the code, or file locations are mixed up."

I downloaded a new version of Sublime Text 2 and began to use TH's downloadable file package for the section I was on, which included an updated index.html. From that point, changes I made worked again for a few code additions only but now it's back to not responding. About the same time it stopped working, was the same time the pop-up message came up (just like in the example from my initial post) from ST2 saying I should pay up.

I did rename the folder containing the index.html and css images, etc but promptly did a Save As and resaved the open files in the newly renamed master folder. Nonetheless, I tried that color border in the css just to see if the change would show but it didn't.

I doubt it's the code that's wrong because the changes stop taking effect between very small additions of new code (which 100% match what the video tutorial terminal shows). Something in the editor, when I'm asked to pay up, is stopping it from saving.

I'll try Text Wrangler in a sec, soon as I download it.

samiff
samiff
31,206 Points

@Adam, I've recently started using Sublime as my main editor and haven't experienced what you have. I did get confused at first about how the project/folder thing worked which caused me a minor headache. Maybe that could be your issue?

That's possible and it could very well be user error since all it takes is something like a missing semi-colon (or a folder mix-up) to keep code changes from showing up. Nonetheless, I switched to TextWrangler and it's been working fine.

Faizal Heesyam
Faizal Heesyam
8,843 Points

i believe most switch to ST2 coz they're comfortable with the shortcuts and command instead of "point and click". i used TM after i ditch my previous IDE, getting use to the shortcuts tremendously increase my productivity/speed... and then i started wanting "more", i just want to see my codes, and i want to open/find files easily and fast..and my wish come true when ST2 released.. dark theme.. superbly intelligent "Cmd+P" to look or find everything im looking for, and honestly i feel it is way faster than any editor ive used.