Skip to content

An example demonstration of the EJ2 Angular Rich Text Editor with the Highlight.js integration.

Notifications You must be signed in to change notification settings

SyncfusionExamples/angular-richtexteditor-highlightjs

Repository files navigation

Angular Rich Text Editor with Highlight.js integration

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.

Quick start

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 serve

Open http://localhost:4200/ in your browser.

What this sample shows

  • 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.

References

About

An example demonstration of the EJ2 Angular Rich Text Editor with the Highlight.js integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors