ngx-highlightjs
Advanced tools
Changelog
11.0.0
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.highlightAuto
directive automatically detects the language and highlights the code.Changelog
10.0.0
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')
}
}
]
Changelog
8.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.