{"repo":"MurhafSousli/ngx-highlightjs","free":true,"listed":false,"github":"https://github.com/MurhafSousli/ngx-highlightjs","clone":"git clone https://github.com/MurhafSousli/ngx-highlightjs.git","description":"Angular syntax highlighting module","language":"TypeScript","stars":292,"topics":["angular","highlightjs","syntax-highlighting","prism","code","linenumbers","gist"],"license":"MIT","category":"ui-components","readme_excerpt":"Angular Highlight.js Instant code highlighting directives Table of Contents - Live Demo Stackblitz - Installation - Usage - Lazy-load highlight.js script - Import highlight.js theme - Highlight usage - HighlightAuto usage - Line numbers addon usage - Plus package - Issues - Author - More plugins Installation Install with NPM Usage Use provideHighlightOptions to provide highlight.js options in app.config.ts Note: This includes the entire Highlight.js library with all languages. You can also opt to load only the core script and the necessary languages. Importing Core Library and Languages HighlightOptions API Name Description -------------------- -------------------------------------------------------------------------------------------------------------------------------- fullLibraryLoader A function returning a promise to load the entire highlight.js script coreLibraryLoader A function returning a promise to load the core highlight.js script lineNumbersLoader A function returning a promise to load the lineNumbers script for adding line numbers languages The languages to register with Highlight.js (Needed only if you opt to use coreLibraryLoader ) config Set Highlight.js configuration, see configure-options lineNumbersOptions Set line numbers plugin options themePath The path to the CSS file for the highlighting theme Import highlighting theme Dynamic Approach Set the theme path in the global configuration to enable dynamic theme changes: Alternatively, import the theme from t","default_branch":null,"files":null,"tree":[],"storefront":"/r/MurhafSousli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MurhafSousli/ngx-highlightjs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}