-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registering a custom language when using ngx-highlightjs #36
Comments
Currently you can call that function directly declare const hljs: any;
hljs.registerLanguage() I will close this in favor of #37 |
OK, thanks a lot. Will #37 allow to load a language definition from a ts file? (Stackblitz doesn't allow creating js files) |
@moniuch I don't really know how it works! You should ask this question on https://github.com/isagalaev/highlight.js/issues I updated the docs, in |
Great! Thanks. Now I seem to have https://stackblitz.com/edit/ngx-highlightjs-datatags?file=app%2Fhome%2Fhome.component.ts Sorry to bother you but I don't quite understand what's going on. |
the one in the stackblitz is different, since stackblitz does not support adding assets files, I include the whole package there. |
Bug Report or Feature Request (mark with an
x
)Not sure how I can
hljs.registerLanguage()
while loading definition from an external file in angular-/cli project. Would you be so kind to provide instructions? Thank you.The text was updated successfully, but these errors were encountered: