File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
scaladoc/resources/dotty_res/scripts Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ function attachAllListeners() {
128
128
}
129
129
}
130
130
131
- hljs . registerLanguage ( "scala" , highlightDotty ) ;
132
- hljs . registerAliases ( [ "dotty" , "scala3" ] , "scala" ) ;
133
- hljs . initHighlighting ( ) ;
131
+ document . querySelectorAll ( 'pre code' ) . forEach ( el => {
132
+ hljs . highlightBlock ( el ) ;
133
+ } ) ;
134
134
135
135
/* listen for the `F` key to be pressed, to focus on the member filter input (if it's present) */
136
136
document . body . addEventListener ( 'keydown' , e => {
@@ -150,6 +150,8 @@ function attachAllListeners() {
150
150
}
151
151
152
152
window . addEventListener ( "DOMContentLoaded" , ( ) => {
153
+ hljs . registerLanguage ( "scala" , highlightDotty ) ;
154
+ hljs . registerAliases ( [ "dotty" , "scala3" ] , "scala" ) ;
153
155
attachAllListeners ( )
154
156
} ) ;
155
157
You can’t perform that action at this time.
0 commit comments