:gem: [Feature] Hightlight code snippets
Browse files
apps/llm_mixer/index.html
CHANGED
@@ -11,13 +11,18 @@
|
|
11 |
/>
|
12 |
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
13 |
<script type="text/javascript" src="./js/common/live.js"></script>
|
14 |
-
<link
|
|
|
|
|
|
|
|
|
15 |
<link
|
16 |
rel="stylesheet"
|
17 |
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
|
18 |
/>
|
19 |
<script src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js"></script>
|
20 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/2.1.0/showdown.min.js"></script>
|
|
|
21 |
</head>
|
22 |
<body>
|
23 |
<div class="container">
|
|
|
11 |
/>
|
12 |
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
13 |
<script type="text/javascript" src="./js/common/live.js"></script>
|
14 |
+
<link
|
15 |
+
rel="stylesheet"
|
16 |
+
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css"
|
17 |
+
/>
|
18 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
19 |
<link
|
20 |
rel="stylesheet"
|
21 |
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
|
22 |
/>
|
23 |
<script src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js"></script>
|
24 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/2.1.0/showdown.min.js"></script>
|
25 |
+
<link rel="stylesheet" href="./js/default.css" />
|
26 |
</head>
|
27 |
<body>
|
28 |
<div class="container">
|
apps/llm_mixer/js/buttons_binder.js
CHANGED
@@ -78,6 +78,7 @@ class SendUserInputButtonBinder {
|
|
78 |
.removeClass()
|
79 |
.addClass("fa fa-paper-plane")
|
80 |
.addClass("icon-success");
|
|
|
81 |
}
|
82 |
}
|
83 |
|
|
|
78 |
.removeClass()
|
79 |
.addClass("fa fa-paper-plane")
|
80 |
.addClass("icon-success");
|
81 |
+
hljs.highlightAll();
|
82 |
}
|
83 |
}
|
84 |
|