1 مستودع
Syntax highlighting of code blocks specifically within React applications using component-based rendering.
Distinct from Code Highlighting: Distinct from Code Highlighting: focuses on React-based rendering, not terminal output.
Explore 1 awesome GitHub repository matching user interface & experience · React. Refine with filters or upvote what's useful.
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
Parses source code into tokens and colors each token with language-specific styles in React.