prismjs

Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.

cardinal

Syntax highlights JavaScript code with ANSI colors to be printed to the terminal.