ngx-code-snippet
v17.0.6
Published
Angular component to display code snippets with syntax highlighting.
Readme
Installation
Install using a package manager:
npm i ngx-code-snippetor
yarn add ngx-code-snippetAPI
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. |
