The issue
The code block is too hard to read in dark mode.
Example
I can modify /vendor/s9e/text-formatter/src/Plugins/BBCodes/Configurator/repository.xml
to change the style to github-dark.css.But If I do like this it will be hard to read in light mode.
So how to use github.css for Highlight.js in light mode and github-dark.css in dark mode?
Thank you.
<!-- [CODE] BBCode, uses highlight.js for highlighting: https://highlightjs.org/ -->
<bbcode name="CODE">
<usage>[CODE lang={IDENTIFIER?}]{TEXT}[/CODE]</usage>
<template><![CDATA[
<pre data-s9e-livepreview-hash="" data-s9e-livepreview-onupdate="if(window['hljsLoader'])window['hljsLoader']['highlightBlocks'](this)">
<code>
<xsl:if test="@lang">
<xsl:attribute name="class">language-<xsl:value-of select="@lang"/></xsl:attribute>
</xsl:if>
<xsl:apply-templates />
</code>
<script async="" crossorigin="anonymous">
<xsl:if test="'default' != ']]><var name='style' description='highlight.js style name (or "none")'>github-dark</var><![CDATA['">
<xsl:attribute name="data-hljs-style">]]>
<var name='style'>github-dark</var>
<![CDATA[</xsl:attribute>
</xsl:if>
<xsl:if test="'https://fastly.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/' != ']]><var name='url' description='highlight.js CDN URL'>https://fastly.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/</var><![CDATA['">
<xsl:attribute name="data-hljs-url">]]>
<var name='url'>https://fastly.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/</var>
<![CDATA[</xsl:attribute>
</xsl:if>
<xsl:attribute name="data-s9e-livepreview-onrender">if(window['hljsLoader'])this.parentNode.removeChild(this)</xsl:attribute>
<xsl:attribute name="integrity">sha384-E9ssooeJ4kPel3JD7st0BgS50OLWFEdg4ZOp8lYPy52ctQazOIV37TCvzV8l4cYG</xsl:attribute>
<xsl:attribute name="src">https://fastly.jsdelivr.net/gh/s9e/hljs-loader@1.0.34/loader.min.js</xsl:attribute>
</script>
</pre>
]]></template>
</bbcode>