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

HTML

james mchugh
james mchugh
6,234 Points

loading an image to a new webpage from a workspace folder

I closed my browser and opened it and still nothing. I just thought of something I'm using Safari and sometime it gives me problems I'm gonna try Chrome next. This is the url to my workspace snapshot. http://w.trhou.se/lkiditbagm

james mchugh
james mchugh
6,234 Points

It's fixed now. The problem was is that I wrote the code in my text editor and then cut and pasted it to the workspace. The quotation marks are different in my textEdit on my Mac book than the one's on workspace. Thanks for the help.

Agnes Demes
Agnes Demes
6,613 Points

oh well done for figuring that one out!

2 Answers

Steven Parker
Steven Parker
231,264 Points

It sounds like you were using "curly" quotes, also known as "word-processor style" quotes, instead of the normal ones used for programming. They look similar, but use different character codes, so they aren't recognized by the language as being quote marks.

For the benefit of other readers, I've reproduced them here in a larger font:

Β  β€œcurly quotes” :point_left: vs :point_right: "programming quotes"

One telltale sign is that the curly quotes are different for left and right, where the programmer quotes are the same.

james mchugh
james mchugh
6,234 Points

Yes Steven that's what I noticed 1st and I thought maybe because I used my textEdit and then cut and pasted it. I wonder if I can change them to programming quotes, because it is easier for me to do my work in the editor since it is small, and have my notes open on the other side of my screen. I'll do a google search to see if I can change that. Thanks for the tip!

james mchugh
james mchugh
6,234 Points

For mac users using textEdit or your pages to keep notes or write code for reference. change to programming quotes instead of smart quotes. Fixed This is not just TextEdit, it's Mavericks. Under System Preferences > Keyboard, you can change the quotation marks. Go to the 'Text' sub-menu. On the right- hand side of the box, uncheck the "Use smart quotes and dashes" checkbox.