Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-highlightjs

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-highlightjs - npm Package Versions

23
6

12.0.0

Diff

Changelog

Source

12.0.0

  • Upgrade to Angular 18, closes #286.
murhaf
published 11.0.1 •

Changelog

Source

11.0.1

  • fix: highlight.js dependency was removed in v11, closes #283.
murhaf
published 11.0.0 •

Changelog

Source

11.0.0

  • Update to Angular 17.
  • feat: Add provideHighlightOptions function to easily override the default options.
  • feat: Add provideGistOptions function in the plus package to easily set gist id and secret into the HTTP requests.
  • feat: Add startFrom and singleLine inputs to lineNumbers directive, closes #274.
  • feat: Make codeFromUrl pipe supports loading of relative URLs, closes #224.
  • feat: Add highlight directive which uses a different function and provide different options, closes #275.
  • feat: Add lineNumbersOptions property to set the default line number options.
  • refactor: Rename the previous highlight directive to highlightAuto.
  • refactor: split line numbers functionality into its own directive.
  • refactor: Use highlight.js original interfaces.
  • enhance: Allow loading theme from global options if highlight.js was imported externally.

Breaking changes

  • The highlight directive now uses a different function from highlight.js which requires selecting a language.
  • The highlightAuto directive automatically detects the language and highlights the code.
murhaf
published 11.0.0-beta.1 •

murhaf
published 10.0.0 •

Changelog

Source

10.0.0

  • feat: Migrate to Angular standalone components, closes #260 in cadcd11.
  • fix: Add line-numbers as a sub package, closes #234 in 7f8f551.
  • refactor: Update deprecated rxjs usage.

Breaking changes

  • When using HighlightPlusModule, you must have provideHttpClient() provided in your main.ts file in order to make the http requests work.
  • The line numbers plugin is now included within the package, the import path should point to the new sub-package ngx-highlightjs/line-numbers
providers: [
  {
    provide: HIGHLIGHT_OPTIONS,
    useValue: {
      lineNumbersLoader: () => import('ngx-highlightjs/line-numbers')
    }
  }
]
murhaf
published 9.0.0 •

Changelog

Source

9.0.0

  • Update to Angular 16.
murhaf
published 8.0.0 •

Changelog

Source

8.0.0

  • Update to Angular 15.
  • Fix setTheme does not load theme if themePath was not specified in the configuration, closes #247 in 4a74d84.
  • Fix Angular Universal error, closes 243 in 8815a9e.
  • Make Angular Universal happy with setTheme function HighlightLoader service, in 0ed6508.
  • Make gist setter public, closes #242 in 3208b0d.
murhaf
published 7.0.1 •

Changelog

Source

7.0.1

  • Add support for trusted types (CSP), in 125a55b.
murhaf
published 7.0.0 •

Changelog

Source

7.0.0

murhaf
published 6.1.3 •

Changelog

Source

6.1.3

  • fix typo: Angular async pipe return type is 'string|null' not 'string' as [highlight] expect, closes #209 in 277322f.
23
6
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc