Throughout the course of this chapter, we will be working directly with the PostCSS API (or a plugin's individual API, if it has one). As we are working directly on CSS (and not simply through a plugin's configuration object), it makes sense to install a syntax highlighter that works with PostCSS.
Not every text editor has one, but if you happen to use Sublime Text, with the Package Control facility installed (and I am assuming this is the case for the demos in this book), then it has a highlighter available for PostCSS that we can install. The plugin is available at https://github.com/hudochenkov/Syntax-highlighting-for-PostCSS. Let's get it installed using the following steps:
Syntax Highlighting for PostCSS:
We can of course simply use a highlighter that works with JavaScript; this won't be the same though: having a highlighter designed for PostCSS will make it easier to edit code!
The syntax highlighter that we've just installed comes with its own theme. If you like to roll your own, then you can do so, using the Base16 site at http://chriskempson.github.io/base16/.
Okay, let's move on; it's time to get stuck into code. Let's begin by exploring some of the plugins available for parsing code in PostCSS.