In my Mozcon presentation this year, I talked about Markdown. I’ve had a few people ask about my toolset, so here’s how I install and use Atom to write Markdown. Enjoy.
Atom is fast becoming my new favorite text editor. It handles Markdown beautifully, is great for HTML, runs faster than stink, and has great community support. It’s also free.
Here’s how you install Atom and set it up as a full-featured Markdown editor:
Note: I’m doing this all on a Mac. I’ve included Windows commands where relevant. I hope.
Easy-peasy:
If you want to download a specific version, because you’re a nerd, visit the Github repository and take your pick.
If I’m working on a multiple-document project, or writing some awful code, I like to see all the relevant files in one place. That way, I can quickly scan for related images, content, or scripts, without interrupting my flow. Atom lets me do just that:
Atom Project Folders
To view an entire folder:
Open a folder in Atom
Atom then opens the desired folder, listing all files contained in it:
Yesss! I opened a folder!
Now you can jump between files without clicking File >> Open.
You can also add other folders to a project. I’m not going to talk about that here.
Of course, I’m a Markdown fanatic. You should be, too.
Atom is a kick-ass Markdown writing, editing, preview, and conversion tool, all in one. You have to do a little setup, but it’s easy.
Atom has thousands of packages—think of them as plugins—available at https://atom.io/packages. You can install them using the package manager:
If you’re on Windows, click Packages >> Settings View >> Open.
You’ll see something like this:
Atom Package Manager
You’re ready to install the packages you need for Markdown.
Atom Markdown packages number in the dozens. But I find I only need three:
language-markdown
markdown-writer
markdown-preview
They add nifty things like Markdown syntax highlighting:
Atom Markdown Syntax Highlighting
And autonumbered lists:
Markdown lists, just like that
And let you preview your document without leaving Atom:
Markdown Preview in Atom
To install:
Markdown installs the package. You’re good to go.
It’s time to start writing. Here’s how I do it:
If you’re writing a single document that won’t include other files like images:
FILENAME.md
, where FILENAME is whatever you name the file. The .md
extension tells Atom this is a Markdown file. Atom will apply the right packages and syntax highlightingIf you are writing a multiple-file document—like a multiple-chapter book—or will be including other files like images, start with a folder:
I use markdown-preview
so I can see how my document looks without leaving Atom:
Markdown Preview in Atom: Cool, huh?
To use it, you need to toggle Preview. There are keyboard shortcuts, but the easiest way is clicking Packages >> Markdown Preview >> Toggle Preview:
Toggling Markdown Preview
For delivery, you probably need to convert Markdown to something else:
markdown-preview
so that you can see the document previewThat’s it. You’ve got HTML.
Atom lets you install lots of other packages, customize your theme, change fonts, etc. etc. and so forth. Feel free to explore. My only caution: Like any software, the more packages/plugins you add, the slower and more prone to errors Atom gets. Be somewhat picky.
Compare this whole install process to, say, installing Microsoft Word. Which takes longer?
Uh-huh. That’s what I thought. And that’s why I love working with Atom and Markdown. It’s simple. Give it a shot.
If you have questions or suggestions, leave a comment.