awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

Code syntax highlighter

Ranking updated Jul 21, 2026

For code block enhancements, the strongest matches are isagalaev/highlight.js (This library is a widely-used tool for syntax highlighting), conorhastings/react-syntax-highlighter (This library provides a robust React component for rendering) and highlightjs/highlight.js (This library provides robust, multi-language syntax highlighting for web-based). googlearchive/code-prettify and react-syntax-highlighter/react-syntax-highlighter round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

Discover the best code syntax highlighters for your project. Compare top-rated open-source libraries by features and performance to find the best fit.

Code syntax highlighter

Find the best repos with AI.We'll search the best matching repositories with AI.
  • isagalaev/highlight.jsisagalaev avatar

    isagalaev/highlight.js

    24,937View on GitHub↗

    highlight.js is a JavaScript syntax highlighter and client-side code formatter that transforms plain text source code into highlighted HTML for web display. It provides syntax highlighting across a wide variety of programming languages. The library includes an automatic language detector that identifies the programming language of a code block to apply the correct highlighting rules without manual tagging. It is designed for web worker compatibility, allowing the highlighting process to run in background threads to prevent the browser interface from freezing during the processing of large vol

    This library is a widely-used tool for syntax highlighting that automatically detects languages and formats code for web display, though it focuses on the rendering aspect rather than providing built-in interactive execution or diffing features.

    JavaScriptSyntax HighlightersSyntax HighlightersSyntax Highlighting
    View on GitHub↗24,937
  • conorhastings/react-syntax-highlighterconorhastings avatar

    conorhastings/react-syntax-highlighter

    4,663View on GitHub↗

    react-syntax-highlighter is a component for rendering source code with syntax highlighting in React applications. It acts as a wrapper for the PrismJS and Highlight.js engines to provide formatted code display and language-specific colors. The project provides a customizable code block renderer that supports custom DOM injection, line numbering, and inline styling. It allows users to replace default HTML tags with custom React components to control how code is injected into the document object model. The library covers code presentation management through visual themes and line numbering. It

    This library provides a robust React component for rendering syntax-highlighted code blocks with support for line numbering and custom styling, making it a direct fit for enhancing code presentation in web applications.

    JavaScriptLine Numbering UtilitiesSyntax HighlightersSyntax Highlighting
    View on GitHub↗4,663
  • highlightjs/highlight.jshighlightjs avatar

    highlightjs/highlight.js

    24,825View on GitHub↗

    Highlight.js is a syntax highlighting library that automatically detects and applies color-coded styling to source code blocks within web pages. It functions as a language-agnostic formatting engine, utilizing a modular processor that applies consistent visual themes to diverse programming languages based on their specific grammatical rules. By decoupling the core parsing logic from language-specific definitions, the library provides a unified execution environment that operates without requiring internal knowledge of the target language. The project is distinguished by its modular architectu

    This library provides robust, multi-language syntax highlighting for web-based code snippets, serving as a foundational tool for improving code readability despite lacking built-in features like interactive execution or diff highlighting.

    JavaScriptSyntax HighlightersSyntax HighlightingSyntax Highlighting
    View on GitHub↗24,825
  • googlearchive/code-prettifygooglearchive avatar

    googlearchive/code-prettify

    5,767View on GitHub↗

    Code-prettify is a browser-based tool and HTML syntax highlighter that adds visual formatting and line numbers to raw code blocks on web pages. It functions as a client-side code formatter and a customizable lexer library for defining language-specific highlighting rules. The system allows for the creation of custom lexers to provide syntax highlighting for proprietary or uncommon programming languages. Visual presentation is managed through custom code styling and the integration of external CSS stylesheets to define colors and fonts. The project provides automatic syntax highlighting and s

    This is a client-side library that provides syntax highlighting and line numbering for code snippets, making it a direct fit for enhancing code display in web documentation.

    JavaScriptCode Line NumberingSyntax HighlightersSyntax Highlighting
    View on GitHub↗5,767
  • react-syntax-highlighter/react-syntax-highlighterreact-syntax-highlighter avatar

    react-syntax-highlighter/react-syntax-highlighter

    4,638View on GitHub↗

    react-syntax-highlighter is a React component that renders source code with language-specific syntax coloring. It wraps the Prism and Highlight.js syntax highlighting libraries, tokenizing source code using their language grammars and mapping each token to a styled React element. The component operates in two styling modes: inline style objects applied directly to each token, or CSS class names that can be themed via external stylesheets. This dual-mode approach makes the highlighter portable across environments where CSS class injection may or may not be available. The component is built aro

    This is a React component library that provides syntax highlighting for code snippets by wrapping established engines, though it lacks built-in features like line numbering, diff highlighting, or interactive code execution.

    JavaScriptSyntax HighlightersSyntax Highlighting ComponentsSyntax Highlighting Engines
    View on GitHub↗4,638
  • prismjs/prismPrismJS avatar

    PrismJS/prism

    13,008View on GitHub↗

    Prism is a JavaScript syntax highlighter and web-based code formatter. It functions as an extensible syntax engine designed to colorize and format code blocks on web pages, making various programming languages easier to read. The project processes raw code strings into styled HTML elements for use in frontend content rendering, technical documentation, and static site generation. It provides a modular system for adding custom language definitions and highlighting rules to a web-based code viewer.

    Prism is a lightweight, extensible syntax highlighting engine that provides robust language support and formatting for web-based code snippets, though it requires additional plugins or custom implementation for features like line numbering or copy-to-clipboard functionality.

    JavaScriptSyntax HighlightersSyntax Highlighting Engines
    View on GitHub↗13,008
  • code-hike/codehikecode-hike avatar

    code-hike/codehike

    5,365View on GitHub↗

    Codehike is a React-based documentation framework and interactive code walkthrough tool. It functions as a markdown content orchestrator that transforms decorated markdown into structured data and React components, serving as a visualization layer for highlighting code ranges, diffs, and compiler errors. The project is distinguished by its ability to create scrollycoding experiences and step-by-step technical tutorials. It features token-level animations that visually demonstrate how logic evolves between code versions and provides a system for syncing UI state to the browser scroll position.

    Codehike is a specialized React-based framework for building interactive code walkthroughs and documentation that natively supports syntax highlighting, diffs, and copy-to-clipboard functionality.

    TypeScriptSyntax HighlightingCode Diff VisualizationsCode Diff Visualizers
    View on GitHub↗5,365
  • syntaxhighlighter/syntaxhighlightersyntaxhighlighter avatar

    syntaxhighlighter/syntaxhighlighter

    5,305View on GitHub↗

    Syntaxhighlighter is a JavaScript-based frontend library used to render readable source code on web pages. It functions as a client-side syntax highlighter that applies language-specific colors and formatting to plain text code blocks within a browser. The library allows for the generation of a minimal distribution of language brushes and visual themes tailored to specific project needs. This enables the creation of a custom build containing only the required scripts and stylesheets. The system handles source code highlighting for web-based documentation and supports custom asset bundling to

    This library provides client-side syntax highlighting and code formatting for web pages, serving as a foundational tool for displaying code snippets in documentation.

    JavaScriptSyntax Highlighters
    View on GitHub↗5,305
  • shikijs/shikishikijs avatar

    shikijs/shiki

    12,946View on GitHub↗

    Shiki is a syntax highlighting engine that generates color-coded HTML or ANSI output from source code. It functions as a static code highlighter, utilizing standard grammar definitions to parse text and apply accurate visual styling for documentation and terminal displays. The engine distinguishes itself by using a TextMate grammar parser to interpret text patterns, ensuring that code displays match the visual appearance of professional editors. It operates through an isomorphic runtime that supports both browser and server environments, utilizing WebAssembly for consistent execution and pre-

    Shiki is a high-quality syntax highlighting engine that provides accurate, editor-grade colorization for documentation and web applications, though it focuses on the rendering aspect rather than providing built-in interactive features like code execution or copy-to-clipboard buttons.

    TypeScriptSyntax Highlighting Engines
    View on GitHub↗12,946
  • vercel/streamdownvercel avatar

    vercel/streamdown

    4,420View on GitHub↗

    Streamdown is a streaming markdown renderer for React that transforms incoming markdown text into sanitized HTML in real time, handling incomplete blocks as they arrive. It parses GitHub-Flavored Markdown syntax including tables, task lists, and footnotes, and renders LaTeX math expressions using KaTeX, Mermaid diagrams as interactive SVGs, and code blocks with Shiki-based syntax highlighting supporting over 200 languages with dual light and dark themes. The renderer includes an XSS-safe HTML sanitizer that strips dangerous tags and validates URLs to prevent injection attacks. What distinguis

    Streamdown is a React-based markdown renderer that provides robust syntax highlighting via Shiki and includes built-in support for clipboard copying, making it a strong tool for displaying code snippets within web applications.

    TypeScriptSyntax Highlighters
    View on GitHub↗4,420
  • pygments/pygmentspygments avatar

    pygments/pygments

    2,175View on GitHub↗

    Pygments is a generic syntax highlighter written in Python

    Pygments is a robust, language-agnostic syntax highlighting engine that provides the core rendering capability for code snippets, though it lacks built-in interactive execution or UI features like copy-to-clipboard.

    PythonCode Analysis And ParsingText Processing
    View on GitHub↗2,175
  • aramk/crayon-syntax-highlighteraramk avatar

    aramk/crayon-syntax-highlighter

    1,093View on GitHub↗

    Crayon Syntax Highlighter is a web-based tool designed to render source code snippets with language-specific color formatting and styling. It functions as a content management plugin that enables the insertion, configuration, and visual customization of code blocks directly within web editors. The project distinguishes itself through its ability to fetch and display source code from external URLs, local files, or direct text input. It supports complex rendering requirements, such as mixed-language parsing and the isolation of specific code segments within a single document. Users can control

    This is a syntax highlighting library for PHP that supports multiple languages and themes, providing the core functionality needed to display code snippets in web applications.

    PHPSyntax HighlightingSyntax Highlighting
    View on GitHub↗1,093
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
isagalaev/highlight.js24.9KJavaScriptBSD-3-ClauseOct 27, 2025
conorhastings/react-syntax-highlighter4.7KJavaScriptMITFeb 26, 2026
highlightjs/highlight.js24.8KJavaScriptbsd-3-clauseOct 27, 2025
googlearchive/code-prettify5.8KJavaScriptApache-2.0Apr 21, 2020
react-syntax-highlighter/react-syntax-highlighter4.6KJavaScriptmitFeb 7, 2026
prismjs/prism13KJavaScriptMITJun 22, 2026
code-hike/codehike5.4KTypeScriptMITMar 17, 2026
syntaxhighlighter/syntaxhighlighter5.3KJavaScriptMITApr 18, 2020
shikijs/shiki12.9KTypeScriptmitFeb 12, 2026
vercel/streamdown4.4KTypeScriptotherFeb 19, 2026

Related searches

  • Interactive code environments
  • a syntax-highlighting pager for viewing code in the terminal
  • Rich text editors
  • a code-snippet manager
  • a plugin for integrating code editors
  • an open source rich text editor component
  • a spell checker for source code and comments
  • a monospace font for source code readability