This package has been deprecated

Author message:

This project has been renamed to ngx-prism-highlight

prism-highlight
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Prism Highlight

This is an adaptation of the prismjs library that works as an Angular component.

Installation

Install prism-highlight with your favorite package manager.

You will also need to install prismjs. Make sure that you import the the libraries and styles you need from PrismJS itself. For example, in main.ts:

import 'prismjs';
import 'prismjs/components/prism-typescript';
import 'prismjs/themes/prism.css';
import 'prismjs/themes/prism-dark.css';

Usage

This module exports a single directive, prismHighlight that takes the language for highlighting as an input.

<pre prismHighlight="typescript">${tsCode}</pre>

Readme

Keywords

none

Package Sidebar

Install

npm i prism-highlight

Weekly Downloads

2

Version

0.0.2

License

none

Last publish

Collaborators

  • ajcrites