File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import styles from "./index.scss?inline";
99
1010import { marked } from "marked" ;
1111import { markedHighlight } from "marked-highlight" ;
12- import hljs from "highlight.js " ;
12+ import hljs from "@/utilities/hljs " ;
1313
1414import { ContentBase } from "@/components/ContentBase" ;
1515
Original file line number Diff line number Diff line change 77
88import styles from "./index.scss?inline" ;
99
10- import hljs from "highlight.js " ;
10+ import hljs from "@/utilities/hljs " ;
1111
1212export class CdsEsDocsSourceCode extends HTMLElement {
1313 #observer = new MutationObserver ( ( ) => this . #render( ) ) ;
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright IBM Corp. 2026
3+ *
4+ * This source code is licensed under the Apache-2.0 license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ */
7+
8+ import hljs from "highlight.js/lib/core" ;
9+
10+ import xml from "highlight.js/lib/languages/xml" ;
11+ import scss from "highlight.js/lib/languages/scss" ;
12+ import shell from "highlight.js/lib/languages/shell" ;
13+
14+ hljs . registerLanguage ( "html" , xml ) ;
15+ hljs . registerLanguage ( "scss" , scss ) ;
16+ hljs . registerLanguage ( "console" , shell ) ;
17+
18+ export default hljs ;
You can’t perform that action at this time.
0 commit comments