Don't save the file or you'll lose hidden parts of the code! If you followed the instructions to change the preview template of nvALT until where you need to change the basedir to point to your note archive, you may open the template.html file with TextEdit and end up with this: If you see this when you open HTML files in TextEdit, you have to change the settings.
Here’s how you configure TextEdit, Apple’s own editor which comes with every Mac by default, to edit HTML files the way you need to. html file in the first place without some effort. Turns out that you probably aren’t able to edit the preview. In June, I told you about how to customize nvALT’s Markdown preview template so you can include images from a sub-directory of your notes’ directory with ease.