Skip to content

Commit

Permalink
support sql
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerZANP committed Aug 13, 2023
1 parent 4e3cc08 commit 6246227
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
14 changes: 13 additions & 1 deletion examples/web/components/CodeSnippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const ALL_LANGS = [
// "smalltalk",
// "solidity",
// "sparql",
// "sql",
"sql",
// "ssh-config",
// "stata",
// "stylus",
Expand Down Expand Up @@ -670,6 +670,18 @@ def greet(name):
# -----
# ^
# [Hello world!]
`,
sql: `
-- Create a new table to store customer information
CREATE TABLE Customers (
-- @dim
CustomerID INT PRIMARY KEY,
FirstName VARCHAR(50),
-- -------
-- ^
-- [Hello World!]
LastName VARCHAR(50)
);
`,
vb: `
Imports System
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```sql annotate
-- Create a new table to store customer information
CREATE TABLE Customers (
-- @dim
CustomerID INT PRIMARY KEY,
FirstName VARCHAR(50),
-- -------
-- ^
-- [Hello World!]
LastName VARCHAR(50)
);
```
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<pre class="shiki github-light" style="color:#24292e;background-color:#fff"><div class="code-container"><code><div class="line"><span style="color: #6A737D">-- Create a new table to store customer information</span></div><div class="line"><span style="color: #D73A49">CREATE</span><span style="color: #24292E"> </span><span style="color: #D73A49">TABLE</span><span style="color: #24292E"> </span><span style="color: #6F42C1">Customers</span><span style="color: #24292E"> (</span></div><div class="line dim"><span style="color: #24292E"> CustomerID </span><span style="color: #D73A49">INT</span><span style="color: #24292E"> </span><span style="color: #D73A49">PRIMARY KEY</span><span style="color: #24292E">,</span></div><div class="line"><span style="color: #24292E"> FirstName </span><span style="color: #D73A49">VARCHAR</span><span style="color: #24292E">(</span><span style="color: #005CC5">50</span><span style="color: #24292E">),</span></div><div class="shaku-underline shaku-underline-solid" style="left:14ch"><span class="shaku-underline-line" style="left:0ch">-------</span></div><div class="shaku-callout" style="left:9ch"><span class="shaku-callout-arrow" style="left:8ch"></span><p>Hello World!</p></div><div class="line"><span style="color: #24292E"> LastName </span><span style="color: #D73A49">VARCHAR</span><span style="color: #24292E">(</span><span style="color: #005CC5">50</span><span style="color: #24292E">)</span></div><div class="line"><span style="color: #24292E">);</span></div></code></div></pre>

1 comment on commit 6246227

@vercel
Copy link

@vercel vercel bot commented on 6246227 Aug 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shaku-web – ./

shaku-web-git-main-jserzanp.vercel.app
shaku-web-jserzanp.vercel.app
shaku-web.vercel.app

Please sign in to comment.