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.
يبدو أن هذه المكونات معطلة في أحدث الإصدارات التجريبية - لم يعد التمييز يعمل بشكل صحيح عند تثبيتها. لقد قمت بإزالة المكونات من السمات وبدأت في العمل مرة أخرى - لا يمكنني اختيار سمة التمييز.
خطأ في إنشاء أصل التحميل: a11y-dark. اسم الملف الأصلي عذرًا، الملف الذي تحاول تحميله غير مصرح به (الامتدادات المصرح بها: wasm، jpg، jpeg، png، woff، woff2، svg، eot، ttf، otf، gif، webp، avif، js).
يسعدني وجود مكون السمة هذا! ألاحظ أن الإعداد hljs dark match لا يبدو أنه يعمل.
على سبيل المثال، لدينا hljs theme مضبوط على atom-one-light (والذي يوجد له أيضًا atom-one-dark).
عند التحديث، يعمل atom-one-light أثناء الوضع المظلم، لكن كتلة التعليمات البرمجية لا تتحول إلى الوضع المظلم عند التبديل إلى الوضع المظلم - بل تبقى فاتحة.