From 4d3daf31cd1b4fa3156cc45a2fd3bd6ccbed4b8b Mon Sep 17 00:00:00 2001 From: 2400032703kotinijeswanth <2400032703@kluniversity.in> Date: Sun, 23 Nov 2025 19:40:27 +0530 Subject: [PATCH] Add Installation & Usage section to README --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 39cc2fea5b..17faf4b3e8 100644 --- a/README.md +++ b/README.md @@ -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 `` and `