
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
@ctrl/ngx-numbered-codeblock
Advanced tools
Prism.js wrapper with built-in line numbers
DEMO: https://ngx-numbered-codeblock.netlify.com/
npm install @ctrl/ngx-numbered-codeblock
Latest version available for each version of Angular
| @ctrl/ngx-numbered-codeblock | Angular |
|---|---|
| 2.0.2 | 8.x |
| current | >= 9.x |
Import the module
// 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
<ngx-numbered-codeblock [code]="code"></ngx-numbered-codeblock>
Import a theme or create your own
code - a formatted string of the code to displaylanguague - default: typescript the code parser to use with prismjslineNumbers - default: true if line numbers should be shownMIT
FAQs
numbered codeblock and prismjs wrapper for angular
The npm package @ctrl/ngx-numbered-codeblock receives a total of 113 weekly downloads. As such, @ctrl/ngx-numbered-codeblock popularity was classified as not popular.
We found that @ctrl/ngx-numbered-codeblock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.