# prism-highlight

> This is an adaptation of the [prismjs](https://github.com/PrismJS/prism) library that works as an Angular component.

Latest version **0.0.2** (published 2017-07-06) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install prism-highlight
pnpm add prism-highlight
yarn add prism-highlight
bun add prism-highlight
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-07-06 |
| First published | 2017-07-06 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+14 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | ajcrites |

## Links

- npm: https://www.npmjs.com/package/prism-highlight
- npm.io page: https://npm.io/package/prism-highlight

## Dependencies (6)

- [rxjs](https://npm.io/package/rxjs.md) ^5.4.0
- [zone.js](https://npm.io/package/zone.js.md) ^0.8.11
- [typescript](https://npm.io/package/typescript.md) ^2.3.3
- [@angular/core](https://npm.io/package/@angular/core.md) ^4.1.3
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) ^4.1.3
- [@angular/compiler-cli](https://npm.io/package/@angular/compiler-cli.md) ^4.1.3

## Recent versions

- 0.0.2 (latest) — 2017-07-06
- 0.0.1 — 2017-07-06

## README

# Prism Highlight
This is an adaptation of the [prismjs](https://github.com/PrismJS/prism)
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>

---
_Source: https://npm.io/package/prism-highlight · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
