JavaScript Code highlighting

Open-source JavaScript projects categorized as Code highlighting

Top 3 JavaScript Code highlighting Projects

Code highlighting
  1. Highlight.js

    JavaScript syntax highlighter with language auto-detection and zero dependencies.

    Project mention: Open-Source N8N Alternative for Workflow Building (GUI and Docker Included) | news.ycombinator.com | 2025-11-28

    In your website you could use https://highlightjs.org/ to syntax highlight the blocks of code.

  2. SurveyJS

    SurveyJS: Build JSON-Driven Surveys and Forms with Full Data Control. Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal for data-heavy apps. Learn more.

    SurveyJS logo
  3. PrismJS

    Lightweight, robust, elegant syntax highlighting.

    Project mention: Artisanal Handcrafted Git Repositories | news.ycombinator.com | 2025-07-16

    The site uses Astro (https://astro.build/) and the code blocks are generated using Shiki (https://shiki.style/). As Shiki generates the HTML and CSS at build-time instead of requiring runtime JS like alternatives like Prism (https://prismjs.com/#basic-usage), it's actually quite performant. I think it's unlikely that a couple of hundred lines with some empty spans in is going to cause performance issues – imo it's more likely to come from some silly JS somewhere.

  4. Javascript Left-Right Parser

    Parser for JavaScript

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

JavaScript Code highlighting discussion

JavaScript Code highlighting related posts

  • Open-Source N8N Alternative for Workflow Building (GUI and Docker Included)

    3 projects | news.ycombinator.com | 28 Nov 2025
  • Supercharge Your Projects: Must-Have JavaScript Plugins for Developers 🚀

    1 project | dev.to | 3 Mar 2025
  • A better pkg.go.dev

    1 project | dev.to | 16 Feb 2025
  • Day 19: Highlight'em up! 🔖

    1 project | dev.to | 18 Dec 2024
  • A Simple, mostly CSS code editor

    2 projects | dev.to | 30 Oct 2024
  • YouTube Embeds Are Bananas Heavy and It's Fixable

    8 projects | news.ycombinator.com | 7 Jul 2024
  • Dev.to and GitHub usage pl Syntax Highlighter

    1 project | dev.to | 17 Mar 2024
  • A note from our sponsor - SurveyJS
    surveyjs.io | 23 Dec 2025
    Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal for data-heavy apps. Learn more. Learn more →

Index

What are some of the best open-source Code highlighting projects in JavaScript? This list will help you:

# Project Stars
1 Highlight.js 24,775
2 PrismJS 12,869
3 Javascript Left-Right Parser 10

Sponsored
SurveyJS: Build JSON-Driven Surveys and Forms with Full Data Control
Add the SurveyJS UI components to your JS app (React/Angular/Vue3). Securely collect and analyze data without sending it to 3rd-party servers. Fully customizable, works with any backend, and ideal for data-heavy apps. Learn more.
surveyjs.io

Did you know that JavaScript is
the 4th most popular programming language
based on number of references?