Angular syntax highlighting module
provideHighlightOptions
function to easily override the default options.provideGistOptions
function in the plus package to easily set gist id and secret into the HTTP requests.startFrom
and singleLine
inputs to lineNumbers
directive, closes #274.codeFromUrl
pipe supports loading of relative URLs, closes #224.highlight
directive which uses a different function and provide different options, closes #275.lineNumbersOptions
property to set the default line number options.highlight
directive to highlightAuto
.highlight.js
original interfaces.highlight.js
was imported externally.highlight
directive now uses a different function from highlight.js which requires selecting a language.HighlightPlusModule
, you must have provideHttpClient()
provided in your main.ts
file in order to make the http requests work.ngx-highlightjs/line-numbers
providers: [
{
provide: HIGHLIGHT_OPTIONS,
useValue: {
lineNumbersLoader: () => import('ngx-highlightjs/line-numbers')
}
}
]
Full Changelog: https://github.com/MurhafSousli/ngx-highlightjs/compare/v9.0.0...v10.0.0
Full Changelog: https://github.com/MurhafSousli/ngx-highlightjs/compare/v8.0.0...v9.0.0
setTheme
does not load theme if themePath
was not specified in the configuration, closes #247 in 4a74d84.setTheme
function HighlightLoader
service, in 0ed6508.Full Changelog: https://github.com/MurhafSousli/ngx-highlightjs/compare/v7.0.1...v8.0.0
Full Changelog: https://github.com/MurhafSousli/ngx-highlightjs/compare/v7.0.0...v7.0.1
Added a dynamic way for loading the highlighting theme, if you have light and dark themes in your app, this release makes it easier to change the highlight theme on the fly