# ngx-numbered-codeblock **Repository Path**: mirrors_scttcper/ngx-numbered-codeblock ## Basic Information - **Project Name**: ngx-numbered-codeblock - **Description**: Prism.js wrapper with built-in line numbers - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
> [Prism.js](https://github.com/PrismJS/prism) wrapper with built-in line numbers __DEMO__: https://ngx-numbered-codeblock.netlify.com/ ## Installation ```sh npm install @ctrl/ngx-numbered-codeblock ``` ## Dependencies Latest version available for each version of Angular | @ctrl/ngx-numbered-codeblock | Angular | | ---------------------------- | ------- | | 2.0.2 | 8.x | | 3.0.1 | 9.x | | current | >= 10 | ## Use Import the module ```ts // Added to NgModule import { NumberedCodeblockModule } from '@ctrl/ngx-numbered-codeblock'; // Import your required language in main.ts or at the root of your application import 'prismjs'; // typescript import 'prismjs/components/prism-typescript'; // javascript import 'prismjs/components/prism-javascript'; ``` Use The Component ```html