This repository is a minimal Angular sample demonstrating how to integrate Highlight.js with a Rich Text Editor to provide syntax highlighting for code blocks entered into the editor.
Prerequisites:
- Node.js 20.x (recommended). Also supported: Node.js 22.x or 24.x
- npm
Install dependencies and run the app:
npm install
ng serveOpen http://localhost:4200/ in your browser.
- How to set up Highlight.js in an Angular app and include a theme stylesheet
- How to automatically highlight code blocks within the Rich Text Editor on content change.
- Integration UG: Highlight.js Integration with Angular Rich Text Editor
- Documentation - Getting Started
- Full Featured Demo: Angular Rich Text Editor Overview sample