2 Repos
Components that allow users to define how code blocks are injected into the DOM using custom React components.
Distinct from Custom Code Block Rendering: Focuses on DOM injection and structural customization rather than transforming code into non-textual components like charts.
Explore 2 awesome GitHub repositories matching user interface & experience · Customizable Code Block Renderers. Refine with filters or upvote what's useful.
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
Implements a customizable renderer that allows replacing default HTML tags with user-defined React components for granular DOM control.
Braft Editor ist ein React-basierter Rich-Text-Editor, der auf Draft.js aufbaut und ein Framework für die Inhaltserstellung und Formatierung bietet. Er fungiert als wiederverwendbare UI-Komponente, die es Nutzern ermöglicht, formatierte Dokumente in einer WYSIWYG-Oberfläche zu verfassen und den resultierenden Inhalt als HTML-Strings zu exportieren. Das Projekt bietet integrierte Lokalisierungsunterstützung für mehrere Sprachen, darunter Chinesisch, Japanisch und Koreanisch. Es bietet ein modulares System zur Erweiterung der Editor-Funktionalität durch Plugins, benutzerdefinierte Toolbar-Mappings und spezialisierte Medien-Entitäten. Der Editor deckt eine breite Palette an Inhaltsfunktionen ab, einschließlich Rich-Text-Formatierung, Absatz- und Block-Styling sowie die Organisation verschachtelter Listen. Er unterstützt das Einbetten von Multimedia-Inhalten wie Bildern, Audio, Video und formatierten Code-Blöcken. Der Dokumentzustand wird über ein kontrolliertes Komponentenmuster verwaltet, was die Synchronisation zwischen Editor und Anwendungszustand ermöglicht.
Includes formatted code blocks that support tab-based indentation and custom visual rendering.