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 main features of conorhastings/react-syntax-highlighter are: Syntax Highlighting, Syntax Highlighting Components, Runtime Footprint Reducers, React Grammar Wrappers, Syntax Engine Wrappers, Code Presentation Themes, Code Snippet Styling, Customizable Code Block Renderers.
Open-source alternatives to conorhastings/react-syntax-highlighter include: alecthomas/chroma — Chroma is a syntax highlighter written in Go that converts raw source code into colorized text or HTML. It identifies… aramk/crayon-syntax-highlighter — Crayon Syntax Highlighter is a web-based tool designed to render source code snippets with language-specific color… syntaxhighlighter/syntaxhighlighter — Syntaxhighlighter is a JavaScript-based frontend library used to render readable source code on web pages. It… react-syntax-highlighter/react-syntax-highlighter — react-syntax-highlighter is a React component that renders source code with language-specific syntax coloring. It… googlearchive/code-prettify — Code-prettify is a browser-based tool and HTML syntax highlighter that adds visual formatting and line numbers to raw… prismjs/prism — Prism is a JavaScript syntax highlighter and web-based code formatter. It functions as an extensible syntax engine…
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