Some links for JavaScript tokenizers and syntax highlighters
Posted by jpluimers on 2026/01/28
In yesterday’s post Bookmarklet for Archive.is to navigate to the canonical link with the “redirected from” instead of “saved from” I mentioned js-tokenizer for syntax highlighting. When writing that, I didn’t have time to dig deeper, but saved the links for later investigation.
Since I won’t have time to finish writing a complete article on this anytime soon, I decided to just publish the list:
- [Wayback/Archive] Best Javascript Beautifier tool work as JavaScript Formatter, Viewer and Prettier
- GitHub: gist – Wikipedia (which does syntax highlighting)
- [Wayback/Archive] Creating and highlighting code blocks – GitHub Docs
- [Wayback/Archive] syntax-highlighting · GitHub Topics · GitHub
- [Wayback/Archive] SyntaxHighlighter · GitHub
- [Wayback/Archive] syntaxhighlighter repositories (all) · GitHub
- [Wayback/Archive] syntaxhighlighter repositories (javascript) · GitHub
- [Wayback/Archive] GitHub – syntaxhighlighter/syntaxhighlighter: SyntaxHighlighter is a fully functional self-contained code syntax highlighter developed in JavaScript.
- [Wayback/Archive] GitHub – syntaxhighlighter/brush-javascript: JavaScript brush module for SyntaxHighlighter
- [Wayback/Archive] GitHub – fatih-erikli/javascript-syntax-highlighter: Javascript tokenizer and a simple syntax highlighter
- demo page of the above repository showing the syntax highlighted JavaScript source code: ideal starting point for a site that does this or any JavaScript file
- [Wayback/Archive] GitHub – lydell/js-tokens: Tiny JavaScript tokenizer.
- [Wayback/Archive] index.js – nodebox – CodeSandbox – js-tokens usage example
- [Wayback/Archive] index.js – nodebox – CodeSandbox – my fork to show the tokenizing of an early version of the join based Bookmarklet in my yesterday’s blog post.
- [Wayback/Archive] GitHub – ndesmic/jsparse: Javascript tools for parsing is the result of:
Queries (incomplete; I forgot to save the earliest ones and when starting to write this blog post that part of the browsing history had expired):
- [Wayback/Archive] “javascript tokenizer” online at DuckDuckGo
- [Wayback/Archive] “online” “js-tokens” at DuckDuckGo
- [Wayback/Archive] github syntax highlighters at DuckDuckGo
--jeroen






Leave a comment