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

Can Sublime Text notify if a local src or url() is not correct?

Hi,

Can Sublime Text detect and notify me (show a warning) when a src or url() link is not correct?

eg. I was trying to link a background image in my stylesheet

background: url('..images/pdf.png') no-repeat 0 2px;

however, I missed the slash between the two dots and the images folder.

It would be great if Sublime Text could detect this and flag it. Can it do this?

If it can I assume I need to add all resources as a project, but I've tried that and, on it's own at least, it doesn't seem to work.

Cheers,

Jared

1 Answer

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Jared,

The answer is no I'm afraid, I don't know if you could search out a plugin that would do this but I doubt it. I actually use a pre processor called Hammer for Mac as I write code using Sass, this program gives you cleaver paths meaning you only need write the image name and hammer will write the full path for you, even if you move the file Hammer will change the file path.