Skip to content
N

ngx-highlightjs

Instant code highlighting, auto-detect language, super easy to use!

by MurhafSousli

#1376in UI Libraries
0In stores

Description

ngx-highlightjs is an Angular module that adds syntax highlighting to code on a page, using highlight.js. You add a directive to an element,…

Highlights

  • Angular directives for code highlighting
  • Automatic language detection
  • Line numbers addon
  • Lazy loading of highlight.js
  • Theme switching with setTheme

Ratings & Reviews

No ratings yet

Be the first to rate ngx-highlightjs.

People also visit

N

ngx-markdown

Angular library that combines Marked, Prism.js, Emoji-Toolkit, KaTeX

UI Libraries
Launch
R

react-highlight

React component for syntax highlighting

UI Libraries
Launch
N

ngx-quill

Angular components for the Quill Rich Text Editor

UI Libraries
Launch
N

ngx-wig

Angular WYSIWYG HTML Rich Text Editor

UI Libraries
Launch
N

ngx-bar-rating

Angular Bar Rating

UI Libraries
Launch
D

domternal

Lightweight, extensible rich text editor toolkit with native Angular components

UI Libraries
Launch

ngx-highlightjs FAQ

What is ngx-highlightjs?

An Angular module for syntax highlighting, built on highlight.js.

How do I install it?

Install it with npm, then provide the highlight.js options in app.config.ts using provideHighlightOptions.

Can I load fewer languages?

Yes. Use the core library loader and register only the languages you need. The README notes the full library includes every language.

Can I switch themes?

Yes. Set the theme path in the global configuration, then call setTheme from the HighlightLoader service when the app theme changes.

What are the best ngx-highlightjs alternatives?

Popular alternatives to ngx-highlightjs include ngx-markdown, react-highlight and ngx-quill. See all ngx-highlightjs alternatives

Developer Stuff

Badges