Once you decide on a hljs theme to use, you can search the dropdown for the one you want and save the setting. You will need to refresh the page in order for everything to start working.
Credits
All of the hljs themes included in this component have copyright information in their respective files. The list of all of those authors () is too big to add here, but you can see them here.
Hosted by us? Theme components are available to use on our Standard, Business, and Enterprise plans.
This theme is very useful and running in my site for a long time. How ever I suddenly found it has a problem on firefox. The custom css file blocked by the following header X-Content-Type-Options: nosniff. Console shows that css file MIME type is text/html. No matter which theme I choise the problem still happen on firefox but chrome is fine.
So, this means that the current options are going to stay the same for a while. First, the highlight-js version needs to be updated in tests-passed in Discourse. Then we’d need to wait for a stable release. Updating the themes (even the current ones) would put us in a bad state where it’s guesswork whether the theme works properly on your site or not.
Diese Komponente scheint in den neuesten Betas fehlerhaft zu sein – die Hervorhebung funktioniert nicht mehr richtig, wenn sie installiert ist. Ich habe die Komponente aus den Themes entfernt und es funktionierte wieder – ich kann nur nicht mehr das Hervorhebungstheme auswählen.
Dies beinhaltet ein Update auf highlight.js Version 11 Themes (core wurde ebenfalls auf highlight.js Version 11 aktualisiert) und Fixes für Styles, denen die richtige Spezifität fehlte.
Ich habe diese Fehlermeldung erhalten, als ich versucht habe, die Komponente zu installieren
Fehler beim Erstellen des Upload-Assets: a11y-dark. Originaldateiname Entschuldigung, die Datei, die Sie hochladen möchten, ist nicht autorisiert (autorisierte Erweiterungen: wasm, jpg, jpeg, png, woff, woff2, svg, eot, ttf, otf, gif, webp, avif, js).
Ich habe gerade diese Theme-Komponente gefunden – ich bin so froh, dass es sie gibt! Mir ist aufgefallen, dass die Einstellung hljs dark match anscheinend nicht funktioniert.
Zum Beispiel haben wir hljs theme auf atom-one-light eingestellt (wofür es auch atom-one-dark gibt).
Beim Aktualisieren wird atom-one-light im Dunkelmodus übernommen, aber der Codeblock wechselt nicht zu Dunkel, wenn zum Dunkelmodus gewechselt wird – er bleibt hell.
Ich habe diese Fehlermeldung bei der Installation von Theme-Komponenten erhalten und hoffe, dass mir jemand aus der Community helfen kann, sie zu beheben.