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 email

creating an html email in atom text editor and its not displaying in the browser. how would I be able to preview the email while I'm coding it?

1 Answer

Tim Stride
Tim Stride
12,827 Points

Hi, if the email code is in an .html file type then default behaviour should be that it opens in the browser when you double click on the file on your computer (depending on your computer settings). Editing and saving the file in Atom should result in seeing the changes when you refresh the browser view.

Alternatively, there are various free add-on packages for Atom that let you preview it in a side pane within Atom as you save file changes. I use one called 'browser-plus' by skandasoft and I think 'Markdown Preview' is a similar package. (In Atom, go to Packages to search and install.)