awesome-repositories.com
ब्लॉग
awesome-repositories.com

AI-संचालित खोज के साथ बेहतरीन ओपन-सोर्स रिपॉजिटरी खोजें।

एक्सप्लोर करेंक्यूरेटेड खोजेंओपन-सोर्स विकल्पसेल्फ-होस्टेड सॉफ्टवेयरब्लॉगसाइटमैप
प्रोजेक्टहमारे बारे मेंहम रैंकिंग कैसे करते हैंप्रेसMCP सर्वर
कानूनीगोपनीयताशर्तें
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
alecthomas avatar

alecthomas/chroma

0
View on GitHub↗
4,960 स्टार्स·489 फोर्क्स·Go·4 व्यूज़

Chroma

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 code presentation via HTML generation with line numbering and CSS classes. It also includes a command-line interface for colorizing files directly in the terminal.

Features

  • Syntax Highlighting - Converts raw source code into colorized text or HTML by analyzing language-specific patterns.
  • Programming Language Detectors - Automatically identifies the programming language of a file or snippet based on content and filename.
  • Programming Language Tokenizers - Analyzes code snippets to break them into meaningful symbols and identifiers for highlighting.
  • Source Code Lexers - Uses language-specific lexers to break source code into a stream of typed tokens.
  • Color Themes - Applies visual styles by mapping identified token categories to specific foreground and background colors.
  • Custom Color Theme Definitions - Supports defining new color themes by mapping token types to foreground and background colors.
  • Terminal Color Formatting - Generates colorized text using ANSI codes for terminals supporting various color palettes.
  • Syntax Highlighters - Functions as a comprehensive syntax highlighter that renders code with color-coded patterns.
  • Terminal Text Coloring - Generates ANSI colorized output to improve code readability in terminal environments.
  • Code Block Themes - Allows defining custom color palettes and styles for programming language tokens.
  • CLI Syntax Highlighters - Ships a command-line interface for colorizing files directly in the terminal.
  • Highlighted HTML Generators - Produces highlighted web output with embedded styles, CSS classes, and line numbering.
  • Pluggable Formatters - Provides a pluggable interface to translate token streams into diverse formats like HTML and ANSI.
  • Style-Definition Decoupling - Implements a decoupling layer that separates internal token types from final color definitions.
  • Code Presentation Themes - Creates highlighted HTML snippets with custom styles and line numbers for web display.
  • Syntax Highlighting Styles - Maps code tokens to visual styles via CSS classes for web browser display.
  • Text Processing - Syntax highlighting library.

स्टार हिस्ट्री

alecthomas/chroma के लिए स्टार हिस्ट्री चार्टalecthomas/chroma के लिए स्टार हिस्ट्री चार्ट

AI सर्च

और अधिक बेहतरीन रिपॉजिटरी खोजें

अपनी ज़रूरत को सरल भाषा में बताएं — AI हजारों क्यूरेटेड ओपन-सोर्स प्रोजेक्ट्स को प्रासंगिकता के आधार पर रैंक करता है।

Start searching with AI

अक्सर पूछे जाने वाले प्रश्न

alecthomas/chroma क्या करता है?

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.

alecthomas/chroma की मुख्य विशेषताएं क्या हैं?

alecthomas/chroma की मुख्य विशेषताएं हैं: Syntax Highlighting, Programming Language Detectors, Programming Language Tokenizers, Source Code Lexers, Color Themes, Custom Color Theme Definitions, Terminal Color Formatting, Syntax Highlighters।

alecthomas/chroma के कुछ ओपन-सोर्स विकल्प क्या हैं?

alecthomas/chroma के ओपन-सोर्स विकल्पों में शामिल हैं: conorhastings/react-syntax-highlighter — react-syntax-highlighter is a component for rendering source code with syntax highlighting in React applications. It… googlearchive/code-prettify — Code-prettify is a browser-based tool and HTML syntax highlighter that adds visual formatting and line numbers to raw… rebelot/kanagawa.nvim — kanagawa.nvim is a Lua-based colorscheme for NeoVim that provides a high-contrast visual theme based on a traditional… sinelaw/fresh — Zed is a terminal-based code editor built in Rust that provides a full-featured editing experience with familiar… react-syntax-highlighter/react-syntax-highlighter — react-syntax-highlighter is a React component that renders source code with language-specific syntax coloring. It… isagalaev/highlight.js — highlight.js is a JavaScript syntax highlighter and client-side code formatter that transforms plain text source code…

Chroma के ओपन-सोर्स विकल्प

समान ओपन-सोर्स प्रोजेक्ट्स, जो Chroma के साथ साझा की गई सुविधाओं के आधार पर रैंक किए गए हैं।
  • conorhastings/react-syntax-highlighterconorhastings का अवतार

    conorhastings/react-syntax-highlighter

    4,663GitHub पर देखें↗

    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

    JavaScript
    GitHub पर देखें↗4,663
  • googlearchive/code-prettifygooglearchive का अवतार

    googlearchive/code-prettify

    5,767GitHub पर देखें↗

    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

    JavaScript
    GitHub पर देखें↗5,767
  • rebelot/kanagawa.nvimrebelot का अवतार

    rebelot/kanagawa.nvim

    6,206GitHub पर देखें↗

    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

    Lualspluaneovim
    GitHub पर देखें↗6,206
  • sinelaw/freshsinelaw का अवतार

    sinelaw/fresh

    5,914GitHub पर देखें↗

    Zed is a terminal-based code editor built in Rust that provides a full-featured editing experience with familiar keybindings, mouse support, and multiple cursors. It runs entirely in the terminal while offering capabilities typically found in graphical editors, including split panes, a command palette, and integrated language server protocol support for real-time diagnostics, completions, go-to-definition, and code actions across multiple languages. The editor distinguishes itself through a plugin system that runs sandboxed TypeScript plugins in a QuickJS runtime, with an asynchronous bridge

    Rustideterminal-basedtext-editor
    GitHub पर देखें↗5,914
Chroma के सभी 30 विकल्प देखें→