awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
alecthomas avatar

alecthomas/chroma

0
View on GitHub↗
4,960 estrellas·489 forks·Go·5 vistas

Chroma

Chroma es un resaltador de sintaxis escrito en Go que convierte código fuente crudo en texto coloreado o HTML. Identifica lenguajes de programación y tokens utilizando lexers específicos del lenguaje para producir una salida resaltada para varios entornos.

El proyecto utiliza un sistema de coloración basado en temas que desacopla los tipos de token de los colores finales a través de una capa intermedia de mapeo de estilos. Esto permite temas de código personalizados mapeando categorías de tokens específicas a colores de primer plano y fondo.

El sistema cubre la identificación de lenguaje, el formato de texto de terminal para visores compatibles con ANSI y la presentación de código web mediante la generación de HTML con numeración de líneas y clases CSS. También incluye una interfaz de línea de comandos para colorear archivos directamente en la 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.

Historial de estrellas

Gráfico del historial de estrellas de alecthomas/chromaGráfico del historial de estrellas de alecthomas/chroma

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Preguntas frecuentes

¿Qué hace alecthomas/chroma?

Chroma es un resaltador de sintaxis escrito en Go que convierte código fuente crudo en texto coloreado o HTML. Identifica lenguajes de programación y tokens utilizando lexers específicos del lenguaje para producir una salida resaltada para varios entornos.

¿Cuáles son las características principales de alecthomas/chroma?

Las características principales de alecthomas/chroma son: Syntax Highlighting, Programming Language Detectors, Programming Language Tokenizers, Source Code Lexers, Color Themes, Custom Color Theme Definitions, Terminal Color Formatting, Syntax Highlighters.

¿Qué alternativas de código abierto existen para alecthomas/chroma?

Las alternativas de código abierto para alecthomas/chroma incluyen: 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…

Alternativas open-source a Chroma

Proyectos open-source similares, clasificados según cuántas características comparten con Chroma.
  • conorhastings/react-syntax-highlighterAvatar de conorhastings

    conorhastings/react-syntax-highlighter

    4,663Ver en 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

    JavaScript
    Ver en GitHub↗4,663
  • googlearchive/code-prettifyAvatar de googlearchive

    googlearchive/code-prettify

    5,767Ver en 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

    JavaScript
    Ver en GitHub↗5,767
  • rebelot/kanagawa.nvimAvatar de rebelot

    rebelot/kanagawa.nvim

    6,206Ver en GitHub↗

    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
    Ver en GitHub↗6,206
  • sinelaw/freshAvatar de sinelaw

    sinelaw/fresh

    5,914Ver en GitHub↗

    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
    Ver en GitHub↗5,914
  • Ver las 30 alternativas a Chroma→