awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
googlearchive avatar

googlearchive/code-prettifyArchived

0
View on GitHub↗
5,767 stars·885 forks·JavaScript·Apache-2.0·3 vues

Code Prettify

Code-prettify est un outil basé sur navigateur et un surligneur de syntaxe HTML qui ajoute un formatage visuel et des numéros de ligne aux blocs de code bruts sur les pages web. Il fonctionne comme un formateur de code côté client et une bibliothèque de lexer personnalisable pour définir des règles de surlignage spécifiques au langage.

Le système permet la création de lexers personnalisés pour fournir une coloration syntaxique pour des langages de programmation propriétaires ou peu courants. La présentation visuelle est gérée via un style de code personnalisé et l'intégration de feuilles de style CSS externes pour définir les couleurs et les polices.

Le projet fournit une coloration syntaxique automatique et une numérotation séquentielle des lignes pour les extraits de code source intégrés en HTML. Il prend en charge l'ajout de la prise en charge de langages personnalisés et le stylage de la documentation technique.

Features

  • Syntax Highlighting - Adds readable syntax highlighting to source code snippets embedded in HTML pages for better readability.
  • Language Support - Enables the addition of custom lexers to provide syntax highlighting for languages not supported by default.
  • Regex-Based Colorizers - Uses regular expression patterns to identify language tokens and wrap them in HTML spans for styling.
  • Regular Expression Lexer Libraries - Provides a system for defining language-specific rules to highlight syntax using regular expression patterns.
  • Pluggable Lexer Architectures - Provides a pluggable architecture for adding new language definitions via custom tokenization rules.
  • Syntax Highlighters - Applies syntax highlighting to source code snippets embedded in HTML pages via CSS styling.
  • CSS Class-Based - Maps identified syntax tokens to predefined CSS classes to separate highlighting logic from visual presentation.
  • Custom Highlight Rules - Allows the creation of specialized syntax highlighting rules for proprietary or uncommon programming languages.
  • Syntax Highlighting Styles - Defines the visual appearance of highlighted code elements by applying specific CSS classes to marked-up text.
  • Client-Side Code Formatters - Functions as a browser-based tool that adds line numbers and visual formatting to raw code blocks.
  • Code Formatting - Organizes and numbers lines of code within web pages to help users follow complex scripts.
  • Technical Documentation Styling - Improves the visual presentation of code examples in guides and manuals using customizable CSS themes.
  • Code Line Numbering - Calculates line breaks in source text to insert sequential numbering at the start of each code block.
  • Compatible Stylesheets - Integrates external CSS stylesheets to define specific colors, fonts, and print appearances for highlighted code.

Historique des stars

Graphique de l'historique des stars pour googlearchive/code-prettifyGraphique de l'historique des stars pour googlearchive/code-prettify

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Questions fréquentes

Que fait googlearchive/code-prettify ?

Code-prettify est un outil basé sur navigateur et un surligneur de syntaxe HTML qui ajoute un formatage visuel et des numéros de ligne aux blocs de code bruts sur les pages web. Il fonctionne comme un formateur de code côté client et une bibliothèque de lexer personnalisable pour définir des règles de surlignage spécifiques au langage.

Quelles sont les fonctionnalités principales de googlearchive/code-prettify ?

Les fonctionnalités principales de googlearchive/code-prettify sont : Syntax Highlighting, Language Support, Regex-Based Colorizers, Regular Expression Lexer Libraries, Pluggable Lexer Architectures, Syntax Highlighters, CSS Class-Based, Custom Highlight Rules.

Quelles sont les alternatives open-source à googlearchive/code-prettify ?

Les alternatives open-source à googlearchive/code-prettify incluent : bensadeh/tailspin — Tailspin is a regex-based text colorizer and terminal log viewer designed to transform plain text streams into… alecthomas/chroma — Chroma is a syntax highlighter written in Go that converts raw source code into colorized text or HTML. It identifies… conorhastings/react-syntax-highlighter — react-syntax-highlighter is a component for rendering source code with syntax highlighting in React applications. It… zsh-users/zsh-syntax-highlighting — zsh-syntax-highlighting is a Zsh shell extension and plugin that provides real-time syntax highlighting and visual… prismjs/prism — Prism is a JavaScript syntax highlighter and web-based code formatter. It functions as an extensible syntax engine… syntaxhighlighter/syntaxhighlighter — Syntaxhighlighter is a JavaScript-based frontend library used to render readable source code on web pages. It…

Alternatives open source à Code Prettify

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Code Prettify.
  • bensadeh/tailspinAvatar de bensadeh

    bensadeh/tailspin

    7,875Voir sur GitHub↗

    Tailspin is a regex-based text colorizer and terminal log viewer designed to transform plain text streams into colorized output. It functions as a command line log highlighter and tailer that applies syntax highlighting to logs using regular expressions. The tool distinguishes itself through its ability to monitor files in real time and pipe live output through a highlighter. It recognizes and colors common data types such as IP addresses, UUIDs, HTTP methods, JSON objects, dates, and memory pointers. Users can define custom highlight styles and regex patterns to assign specific colors to uni

    Rustcczecolorizercolors
    Voir sur GitHub↗7,875
  • alecthomas/chromaAvatar de alecthomas

    alecthomas/chroma

    4,960Voir sur GitHub↗

    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

    Goconsolegogolang
    Voir sur GitHub↗4,960
  • conorhastings/react-syntax-highlighterAvatar de conorhastings

    conorhastings/react-syntax-highlighter

    4,663Voir sur 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
    Voir sur GitHub↗4,663
  • zsh-users/zsh-syntax-highlightingAvatar de zsh-users

    zsh-users/zsh-syntax-highlighting

    22,737Voir sur GitHub↗

    zsh-syntax-highlighting is a Zsh shell extension and plugin that provides real-time syntax highlighting and visual feedback. It functions as an interactive command-line visual aid and regular expression text colorizer that distinguishes between commands, string literals, and shell constructs during input. The project allows for extensive customization through user-defined highlight rules, custom regular expression patterns, and predicate logic. It includes specific capabilities for path-based filtering and the assignment of custom colors to text segments. The system provides real-time comman

    Shellscreenshotshellsyntax-highlighting
    Voir sur GitHub↗22,737
  • Voir les 30 alternatives à Code Prettify→