A Syntax Highlight Alternative

Two free, open-source Quick Look extensions that highlight source code in Finder, with different aims

  • Works without the Space helper
  • Free and open source
  • macOS 13+
Syntax Highlight
  • Free, GPL-3.0
  • About 180 formats
  • Deep settings and power tools
  • macOS 12 and later
spacebar
  • Free, MIT
  • Code beside its folder
  • Markdown, JSON, plists and zips too
  • macOS 13 and later
The two at a glance, from the table below. Drawn in HTML.
deploy.sh
Try it: the demo’s deploy.sh, highlighted by spacebar’s own preview page, running in your browser.

Syntax Highlight (opens in a new tab), by sbarex, is a mature code previewer built on the Highlight library, with a long list of formats and a setting for nearly every detail. spacebar shows code beside its folder, with Markdown, JSON, plists and archives in the same pane. If Syntax Highlight does what you need, there is no need to switch.

At A Glance

FeaturespacebarSyntax Highlight
LicenseMITGPL-3.0
InstallA notarized .dmg, or one Terminal commandHomebrew cask or a download; codesigned and notarized
Oldest macOS1312; version 2.1.30 for macOS 10.15 and 11
Highlighterhighlight.js, bundledHighlight, by Andre Simon, with a choice of render engines
FormatsCommon languages, scripts and config; others as plain text with line numbersAbout 180 on its supported-formats list, by our count
SettingsA few, under Aa and in SettingsColor schemes, fonts, word wrap, line numbers, custom CSS, a theme editor, a data limit and per-format arguments
Power toolsNone of theseLanguage Server support, git and Mercurial change marks, preprocessors, a command-line tool, hex dumps of binary files
Folder sidebarYes, with a filterNo
EditingCode, config, text, JSON, CSV and Markdown, in placeNo; a preview only
Beyond codeMarkdown rendered with Mermaid and KaTeX, JSON as a tree, binary plists as XML, zip contents listedBinary plists decompiled with plutil; for Markdown, its developer points to QLMarkdown

Checked against spacebar 0.5.0 and Syntax Highlight 2.1.32, its README and its Homebrew cask, on 2 October 2026. Spot a mistake? Tell us on X (opens in a new tab).

Which To Pick

Pick Syntax Highlight If

  • You need a language spacebar shows as plain text; its list is longer
  • You want Language Server hovers and colors, or changed lines marked
  • You tune fonts, wrapping, CSS, color schemes or a preprocessor
  • You convert files to highlighted HTML from the command line
  • You’re on macOS 12 or earlier

Pick spacebar If

  • You read a file beside its folder, moving with a click or the arrow keys
  • You fix a typo in a script or a config file without an editor
  • You want one previewer for code, Markdown, JSON, plists and zips
  • You want nothing to set up

More: syntax highlighting in Quick Look, and how it sits beside Peek, QLMarkdown and Apple’s Quick Look: compare. For files with no extension, see a QLStephen alternative; for another free previewer, Glance and spacebar.

Running Both

Quick Look uses one previewer per file type, and where both claim a type, macOS picks one. The switch is per extension, not per type: Syntax Highlight’s README says macOS doesn’t allow turning its formats on and off one by one. So keep both on, with Syntax Highlight covering the formats spacebar doesn’t claim and one of them winning the rest, or turn one off in System Settings › General › Login Items & Extensions › Quick Look (on macOS 13 and 14, System Settings › Privacy & Security › Extensions › Quick Look).

Questions

Is Syntax Highlight still maintained?

Yes. Version 2.1.32 came out on 16 September 2026, and it installs with Homebrew as the syntax-highlight cask.

Does either one run my scripts?

spacebar never runs a script it shows; it draws the source as text. Syntax Highlight colors the file with the Highlight library. It runs a preprocessor only if you set one up, apart from the decompilers it uses on its own for AppleScript, property lists and Java classes.

Do I need to uninstall Syntax Highlight to try spacebar?

No. Install spacebar, then turn Syntax Highlight’s extension off in System Settings while you try it. Turning it back on undoes the switch.

Install It

Download for Mac

Or paste this in Terminal

curl -fsSL https://spacebar.patebryant.com/install.sh | sh

The script downloads the latest notarized release from GitHub, checks its SHA-256 and installs to ~/Applications, no sudo. Read the script.