BBEdit $49.99 (approx £39)
barebones.com
Our go-to Mac app for writing all sorts of code – HTML, CSS, JavaScript, and more – has the ability to colour documents based on syntax, plus other clever productivity boosters such as control of how text wraps in its window, the ability to collapse multiple lines into one for clarity, and a sideby-side view of differences in two versions of a file.