I’ve implemented (or contributed to) Swift “brushes” for a few client-side syntax highlighters, including as many of the built-in types (protocols, classes, structs, enums, funcs, vars, and typealiases) as I can scrape out of the Swift “header file”.

Syntax Highlighter

Known issues: None. I’m using a modified version of Syntax Highlighter for the code on this site.

Get Swift syntax Syntax Highlighter


Known issues: None.

Get Swift syntax highlight.js


Known issues: Multi-line nested comments, string interpolations

Get Swift syntax Prism