From 124ba9d74e6cd38eb63be8e8db69145ddc89113d Mon Sep 17 00:00:00 2001 From: mathuraditya724 Date: Wed, 7 Jan 2026 13:39:00 +0530 Subject: [PATCH] feat: added shiki tab on the website --- web-highlighters/index.html | 634 ++++++++++++++++++++++++++++++++++++ 1 file changed, 634 insertions(+) diff --git a/web-highlighters/index.html b/web-highlighters/index.html index 9fcceab..49bd949 100644 --- a/web-highlighters/index.html +++ b/web-highlighters/index.html @@ -116,6 +116,11 @@ color: #FF45A8; } + .badge-shiki { + background-color: rgba(6, 182, 212, 0.1); + color: #06B6D4; + } + pre { @@ -292,6 +297,7 @@

JavaScript

+
// Sentry error tracking example
@@ -367,6 +373,9 @@ 

JavaScript

} }
+
+
Loading Shiki...
+
@@ -374,6 +383,7 @@

TypeScript

+
interface User {
@@ -457,6 +467,9 @@ 

TypeScript

} }
+
+
Loading Shiki...
+
@@ -464,6 +477,7 @@

Python

+
import sentry_sdk
@@ -585,6 +599,9 @@ 

Python

# Simulate processing return {**item, "processed": True, "timestamp": time.time()}
+
+
Loading Shiki...
+
@@ -592,6 +609,7 @@

React JSX

+
import React, { useState, useEffect } from 'react';
@@ -687,6 +705,9 @@ 

React JSX

export default UserProfile;
+
+
Loading Shiki...
+
@@ -694,6 +715,7 @@

CSS

+
/* Sentry-themed button styles */
@@ -789,6 +811,9 @@ 

CSS

} }
+
+
Loading Shiki...
+
@@ -796,6 +821,7 @@

JSON

+
{
@@ -869,6 +895,9 @@ 

JSON

} }
+
+
Loading Shiki...
+
@@ -876,6 +905,7 @@

YAML

+
# Sentry configuration
@@ -947,6 +977,9 @@ 

YAML

ttl: 3600 max_entries: 10000
+
+
Loading Shiki...
+
@@ -954,6 +987,7 @@

SQL

+
-- Get user activity with error tracking
@@ -1017,6 +1051,9 @@ 

SQL

ORDER BY ue.error_count DESC LIMIT 100;
+
+
Loading Shiki...
+
@@ -1024,6 +1061,7 @@

Go

+
package main
@@ -1145,6 +1183,9 @@ 

Go

return nil }
+
+
Loading Shiki...
+
@@ -1152,6 +1193,7 @@

Rust

+
use sentry::{ClientOptions, IntoDsn};
@@ -1275,6 +1317,9 @@ 

Rust

} }
+
+
Loading Shiki...
+
@@ -1311,6 +1356,8 @@

Rust

targetContent.querySelectorAll('pre code').forEach(block => { hljs.highlightElement(block); }); + } else if (highlighter === 'shiki' && typeof window.handleShikiTab === 'function') { + window.handleShikiTab(language); } }, 50); } @@ -1373,6 +1420,9 @@

Rust

activeTab.querySelectorAll('pre code').forEach(block => { hljs.highlightElement(block); }); + } else if (activeTab.dataset.tab === 'shiki' && typeof window.updateShikiTheme === 'function') { + // Re-highlight Shiki blocks with new theme + window.updateShikiTheme(theme); } }); }, 100); @@ -1418,6 +1468,9 @@

Rust

activeTab.querySelectorAll('pre code').forEach(block => { hljs.highlightElement(block); }); + } else if (activeTab.dataset.tab === 'shiki' && typeof window.handleShikiTab === 'function') { + // For Shiki tabs + window.handleShikiTab(language); } }); }, 50); @@ -1455,10 +1508,591 @@

Rust

activeTab.querySelectorAll('pre code').forEach(block => { hljs.highlightElement(block); }); + } else if (activeTab.dataset.tab === 'shiki' && typeof window.handleShikiTab === 'function') { + window.handleShikiTab(activeTab.dataset.lang); } }); }, 100); }); + + +