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.
Questo componente sembra essere rotto nelle ultime beta: l’evidenziazione non funziona più correttamente quando è installato. Ho rimosso il componente dai temi e ha ricominciato a funzionare, semplicemente non posso scegliere il tema di evidenziazione.
Include un aggiornamento ai temi di highlight.js versione 11 (anche il core è stato aggiornato alla versione 11 di highlight.js) e correzioni per stili che mancano della corretta specificità .
Ho riscontrato questo errore durante il tentativo di installazione del componente
Errore durante la creazione dell'asset di caricamento: a11y-dark. Nome file originale Spiacenti, il file che si sta tentando di caricare non è autorizzato (estensioni autorizzate: wasm, jpg, jpeg, png, woff, woff2, svg, eot, ttf, otf, gif, webp, avif, js).
Ho appena trovato questo componente del tema, sono così felice che esista! Noto che l’impostazione hljs dark match non sembra funzionare.
Ad esempio, abbiamo hljs theme impostato su atom-one-light (per cui esiste anche atom-one-dark).
Dopo l’aggiornamento, atom-one-light viene applicato mentre è in modalità scura, ma il blocco di codice non passa al tema scuro quando si passa alla modalità scura: rimane chiaro.
Ho ricevuto questo messaggio di errore durante l’installazione dei componenti del tema, spero che qualcuno possa guidare la community su come risolverli