You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using CSS to set a font family for highlighted code ,but it didn‘t work.
I was confused because it seems that there is not an official way to set a font family for highlightJS
When I using native highlightJS and <pre><code>, .hljs it works
/* a div contained a highlightjs component */#box{
font-family:'JetBrainsMono-Regular';
}
.highlightjs {
font-family:'JetBrainsMono-Regular';
}
.hljs {
font-family:'JetBrainsMono-Regular';
}
The text was updated successfully, but these errors were encountered:
I tried using CSS to set a font family for highlighted code ,but it didn‘t work.
I was confused because it seems that there is not an official way to set a font family for highlightJS
When I using native highlightJS and
<pre><code>
,.hljs
it worksThe text was updated successfully, but these errors were encountered: