Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,32 @@ You can learn more on [prismjs.com](https://prismjs.com/).
[Why another syntax highlighter?](https://lea.verou.me/2012/07/introducing-prism-an-awesome-new-syntax-highlighter/#more-1841)

[More themes for Prism!](https://github.com/PrismJS/prism-themes)
## Installation & Usage

You can install and use Prism either through npm or via a CDN.

### Using npm

Install Prism with npm:

npm install prismjs

Then import it into your project:

import Prism from 'prismjs';

For more details, see:

- https://prismjs.com/#basic-usage-bundlers
- https://prismjs.com/#basic-usage-node

### Using a CDN

For quick browser usage:

1. Go to https://prismjs.com/download.html
2. Select your theme, languages, and plugins.
3. Copy the generated `<link>` and `<script>` tags into your HTML file.

## Contribute to Prism!

Expand Down