Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanVashisht1234 committed Sep 8, 2024
1 parent 8dcbf96 commit 33fd5ce
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
package-lock.json
node_modules/
node_modules/
.DS_Store
17 changes: 15 additions & 2 deletions src/styles/darkMode.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,23 @@
color: rgb(84, 226, 226);
}

.diff_add{
.diff_add {
background-color: rgba(46, 162, 46, 0.467);
}

.diff_subtract{
.diff_subtract {
background-color: rgba(162, 46, 46, 0.467);
}

.basic_code_block {
background-color: #1e1e1e;
color: rgb(255, 163, 92);
}

.nice_code_block {
background-color: #282828;
color: rgb(255, 163, 92);
font-size: 10px;
padding: 5px;
font-family: monospace;
}
10 changes: 6 additions & 4 deletions tests/a.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
<html>

<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/src/styles/darkMode.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/src/styles/darkMode.css">
<style>
</style>
</head>

<body>
<div class="language-zig">
const x = "asdf";
const Zilite:[]const u8 = "Syntax Highlighter";
</div>
<script type="module">
import {highlightElements} from "https://cdn.jsdelivr.net/npm/higherlight@0.0.2";
import {zig} from "https://cdn.jsdelivr.net/npm/higherlight@0.0.2/src/language/zig.js";
import { highlightElements } from "https://cdn.jsdelivr.net/npm/zilite@0.0.2";
import { zig } from "https://cdn.jsdelivr.net/npm/zilite@0.0.2/src/language/zig.js";
highlightElements(zig, "language-zig");
</script>
</body>
Expand Down

0 comments on commit 33fd5ce

Please sign in to comment.