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.
Este componente parece estar roto en las últimas betas: el resaltado ya no funciona correctamente cuando está instalado. Eliminé el componente de los temas y volvió a funcionar; simplemente no puedo elegir el tema de resaltado.
Incluye una actualización a los temas de highlight.js versión 11 (el núcleo también se ha actualizado a highlight.js versión 11) y correcciones para estilos que carecían de la especificidad correcta.
Recibí este error cuando intenté instalar el componente
Error creando activo de carga: a11y-dark. Nombre de archivo original Lo sentimos, el archivo que intenta cargar no está autorizado (extensiones autorizadas: wasm, jpg, jpeg, png, woff, woff2, svg, eot, ttf, otf, gif, webp, avif, js).
¡Acabo de encontrar este componente temático, me alegra mucho que exista! He notado que la configuración hljs dark match no parece funcionar.
Por ejemplo, tenemos hljs theme configurado en atom-one-light (al cual también existe atom-one-dark).
Al actualizar, atom-one-light se aplica mientras está en modo oscuro, pero el bloque de código no cambia a oscuro al cambiar a modo oscuro, se queda en claro.