-
Notifications
You must be signed in to change notification settings - Fork 0
Add syntax highlighting to benchmark page code blocks #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -4,6 +4,8 @@ | |||||
| <meta charset="UTF-8"> | ||||||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||
| <title>json5-kotlin - JSON5 Implementation for Kotlin/JVM</title> | ||||||
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css"> | ||||||
| <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> | ||||||
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | ||||||
| <style> | ||||||
| body { | ||||||
|
|
@@ -98,9 +100,9 @@ | |||||
| font-size: 1.2em; | ||||||
| } | ||||||
| .code-block { | ||||||
| background: #2d3748; | ||||||
| color: #e2e8f0; | ||||||
| padding: 20px; | ||||||
| /* background: #2d3748; */ /* Theme will provide background */ | ||||||
| /* color: #e2e8f0; */ /* Theme will provide color */ | ||||||
|
Comment on lines
+103
to
+104
|
||||||
| /* background: #2d3748; */ /* Theme will provide background */ | |
| /* color: #e2e8f0; */ /* Theme will provide color */ |
Copilot
AI
Jun 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better screen reader support, consider adding an aria-label="JSON5 example" (or similar) to the <pre> or <code> element to describe the code block.
| <pre><code class="language-json5">{ | |
| <pre aria-label="JSON5 example"><code class="language-json5">{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding Subresource Integrity (SRI)
integrityandcrossorigin="anonymous"attributes to the CDN links to ensure the assets haven’t been tampered with.