ngx-code-snippet
TypeScript icon, indicating that this package has built-in type declarations

17.0.4 • Public • Published


Code Snippet

GitHub License NPM Version NPM Downloads

Code Snippet is an Angular component to display syntax highlighting to code snippets.

Installation

Install using a package manager:

npm i ngx-code-snippet

or

yarn add ngx-code-snippet

API

This readonly component takes in the following properties as inputs:

Name Type Default Description
code string "" Code to display.
language string "" Language of the code snippet. Automatic language detection is supported when this field is not provided.
showCopy boolean true Show/hide copy button.
showLineNumbers boolean false Show/hide line numbers.

License

MIT © Namito Yokota

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-code-snippet

Weekly Downloads

8

Version

17.0.4

License

none

Unpacked Size

41.2 kB

Total Files

13

Last publish

Collaborators

  • namitoyokota