30 open-source projects similar to conorhastings/react-syntax-highlighter, ranked by shared indexed features. Tags may describe platforms or build tools rather than the same primary purpose. Check each project’s use case, license, and deployment requirements before treating it as a replacement.
Chroma is a syntax highlighter written in Go that converts raw source code into colorized text or HTML. It identifies programming languages and tokens using language-specific lexers to produce highlighted output for various environments. The project utilizes a theme-driven colorization system that decouples token types from final colors through an intermediate style mapping layer. This allows for custom code theming by mapping specific token categories to foreground and background colors. The system covers language identification, terminal text formatting for ANSI-compatible viewers, and web
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
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
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
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
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.
kanagawa.nvim is a Lua-based colorscheme for NeoVim that provides a high-contrast visual theme based on a traditional Japanese art color palette. It functions as a comprehensive styling system for the editor, applying semantic syntax highlighting to code structures and plugins. The project features a system for switching between different lighting variants, such as warm, deep dark, and light modes. It includes utilities for customizing specific palette colors and highlight groups, as well as the ability to export color definitions to external terminal emulators and shells for cross-applicatio
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.
Carbon is a code visualization tool that transforms raw source code into stylized, high-quality images for use in technical documentation, social media, and educational content. It functions as a browser-based editor that utilizes a language-aware tokenization engine to apply syntax highlighting and visual themes to text. The platform distinguishes itself through its versatile delivery models, which include a standalone desktop application for offline use and programmatic interfaces for automated snippet generation via command-line tools or messaging bots. Users can customize the visual prese
This project is a technical reference and guide for optimizing the performance of Angular applications. It provides a comprehensive checklist for improving speed and efficiency by focusing on bundle optimization, rendering best practices, and runtime execution. The guide covers a wide array of differentiators including the implementation of progressive web app strategies through service workers and offline caching. It also details methods for improving perceived load times using server-side rendering and application shells. The repository provides guidance on broader capability areas such as
Vditor is a browser-based Markdown editor and rendering engine that supports multiple editing interfaces, including a visual rich-text experience, instant rendering, and a traditional side-by-side split-view preview. It serves as an authoring tool for technical documentation and a component for web-based editor integration. The project is distinguished by its support for complex technical content, utilizing specialized rendering for mathematical formulas, flowcharts, sequence diagrams, and mind maps. It also functions as a collaborative document review tool, enabling users to attach anchored
This project is a responsive Sphinx documentation theme that provides a visual layout and a set of Jinja2 templates for rendering technical content into a consistent web interface. It functions as a CSS documentation framework designed to adapt the presentation of technical manuals for both desktop and mobile screens. The theme includes a structured layout specifically for software API references, formatting function signatures, parameters, and return types. It also provides integrated mechanisms for version control linking, allowing documentation pages to point directly to source files on ex
Freeze is a code-to-image generator and terminal output renderer that converts source code and ANSI terminal text into high-quality images. It functions as a command-line tool that transforms text and styled sequences into scalable vector graphics for use in documentation and presentations. The tool differentiates itself by capturing raw output from shell commands via a pseudo-terminal environment and translating ANSI escape codes and colors directly into SVG styles. It features a terminal user interface for real-time parameter adjustment and supports configuration profiles to maintain consis
This project is a suite of specialized tools for the implementation of a language server, template parsing, and static type validation of single-file components. It provides a language server and a type checker to deliver consistent intelligence and validation for Vue components across different editors and command-line environments. The tooling utilizes a template parser to transform single-file component structures into virtual code, enabling static analysis and type checking on HTML-like structures. This process allows for the extraction of component metadata regarding props, events, and s
Markstream-vue is a specialized rendering library for Vue and Nuxt applications designed to process and display streaming markdown content in real time. It provides a dedicated component for handling incoming text streams, such as those generated by artificial intelligence models, by converting them into structured visual layouts as the data arrives. The library distinguishes itself through a performance-focused rendering engine that utilizes document virtualization to manage long-form content. By rendering only the segments currently visible within the user viewport, it maintains smooth scro
Pymdown-extensions is a collection of functional enhancements designed to extend the capabilities of standard Markdown processors. It functions as a Python-based library that integrates into the document conversion pipeline to support complex layouts, rich formatting, and specialized content structures. The library distinguishes itself through a modular extension pipeline that allows for advanced syntax transformation and configurable attribute processing. By hooking into the parsing lifecycle, it enables the creation of structured containers, the embedding of binary assets, and the dynamic i
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
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 project is an HTML-to-native renderer and cross-platform UI component that transforms web-standard markup into native mobile components. It functions as a CSS-to-native style engine and a customizable HTML parser, allowing web content to be displayed in mobile applications without the use of a full web view. The library is distinguished by its ability to intercept and modify the HTML DOM tree before rendering, enabling the injection of custom components, the filtering of specific nodes, and the overriding of default element translation models. It also implements a sophisticated style res
next-mdx-remote is a rendering library for Next.js that serializes and renders MDX content from remote sources. It functions as a secure MDX compiler and remote content serializer, transforming MDX strings from external APIs or databases into a format compatible with client-side hydration. The library distinguishes itself through a secure compilation process that restricts JavaScript execution and global variable access to prevent remote code execution. It utilizes a custom component mapper to replace standard HTML elements in markdown with specific React components, allowing for dynamic cont
This project is a static site generator and documentation builder designed to transform markdown files into styled HTML documents. It functions as a programmatic conversion engine, allowing developers to integrate markdown processing and layout rendering directly into automated build scripts and content workflows. The tool distinguishes itself through a pipeline-oriented architecture that supports custom plugin integration and metadata-driven template injection. Users can define global or per-file metadata to dynamically populate page content, while the system’s template-based generation allo
React is a JavaScript library for building user interfaces through the composition of modular, self-contained components. It employs a declarative programming model where developers describe the desired visual state, and the library automatically manages the underlying document updates and state synchronization. By utilizing a virtual representation of the document, it calculates and applies minimal changes to the browser, ensuring efficient rendering even in complex applications. The library distinguishes itself through a sophisticated scheduling system that manages rendering work in increme
:ocean: 一款 Material Design 风格的 Hexo 主题 / An elegant Material-Design theme for Hexo
CodeMirror is a browser-based code editor framework and modular extension system used to embed full-featured text editors into web pages. It functions as a syntax tree parsing engine and a language server protocol client, enabling structural language analysis and deep integration with external programming language services. The project is distinguished by its modular architecture, which uses a system of extensions and compartments for dynamic reconfiguration at runtime. It supports real-time collaborative editing and state synchronization through an operational transformation framework, allow
NexT is a responsive, elegant static blog theme for Hexo that generates HTML pages from Markdown posts. It is designed as a pre-built visual design for the Hexo framework, producing mobile-friendly layouts that adapt across devices with support for dark mode and multiple visual schemes. The theme distinguishes itself through extensive customization options, including five built-in code highlighting themes for technical blog posts and a multilingual interface supporting over 15 languages. It offers configuration flexibility by allowing theme settings to be stored either in the main Hexo config
This project is a technical reference knowledge base and developer cheat sheet repository. It functions as a searchable collection of quick-reference guides, CLI command patterns, and code snippets for various operating systems, cloud platforms, and infrastructure tools. The system operates as a markdown-based technical knowledge base, where content is stored in plain text files and rendered as a static site. This approach enables a personal knowledge management system that utilizes version control and a directory-based navigation hierarchy to organize technical notes for long-term retrieval.
mini.nvim is a comprehensive library of independent modules designed to extend Neovim with a wide array of navigation, user interface, and text manipulation tools. It serves as a modular plugin collection, a UI toolkit for creating custom statuslines and notifications, and a package manager for installing and pinning external plugins from Git. The project provides a specialized fuzzy picker framework for filtering files and symbols, an LSP completion engine with interactive snippet expansion, and a dedicated plugin test framework that uses headless editor instances and remote procedure calls
This project is a React presentation component designed to create animated code sliders and step-by-step walkthroughs. It functions as a code presentation tool that allows users to highlight syntax and transition between different versions of a codebase during technical demonstrations. The tool enables the creation of animated code walkthroughs by rendering snapshots of code that transition through incremental changes. These sequences are navigated via keyboard inputs, allowing a presenter to advance through code steps to explain logic changes in a live demo. The system provides capabilities
Astro Paper is a minimal and accessible blog theme for the Astro framework, designed to create SEO-optimized static websites. It serves as a pre-configured template for building personal blogs and technical portfolios that render content from Markdown and MDX files. The project distinguishes itself through specialized support for technical writing, including LaTeX mathematical equation rendering and code syntax highlighting. It also automates social media presence via the build-time generation of dynamic Open Graph images and social metadata. The framework covers a broad range of site manage
Heynote is a markdown scratchpad editor and plain text note organizer that utilizes persistent, block-based buffers to maintain state across application sessions. It serves as a code snippet manager with automatic syntax highlighting and a tool for managing multiple categorized text buffers through a tabbed interface. The application functions as an interactive calculation notepad, evaluating mathematical expressions and currency conversions directly within the text. It also includes an image annotation utility that allows for freehand drawings and markups on embedded images, which can then b