Skip to content

Commit

Permalink
support c#
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerZANP committed Aug 13, 2023
1 parent f309d1d commit b928756
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
22 changes: 20 additions & 2 deletions examples/web/components/CodeSnippet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ const ALL_LANGS = [
// "coffee",
"cpp",
// "crystal",
// "csharp",
// "c#",
"c#",
// "cs",
// "css",
// "cue",
Expand Down Expand Up @@ -608,6 +607,25 @@ int main() {
// [Hello World!]
return 0;
}
`,
"c#": `
// @dim
using System;
namespace CommentExample
{
// @highlight
class Program
{
static void Main(string[] args)
{
int x = 10
//----------
// ^
//[Hello World!]
}
}
}
`,
java: `
// @dim
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
```c# annotate
// @dim
using System;
namespace CommentExample
{
// @highlight
class Program
{
static void Main(string[] args)
{
int x = 10
//----------
// ^
//[Hello World!]
}

}
}
```
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 dim"><span style="color: #D73A49">using</span><span style="color: #24292E"> </span><span style="color: #6F42C1">System</span><span style="color: #24292E">;</span></div><div class="line"><span style="color: #D73A49">namespace</span><span style="color: #24292E"> </span><span style="color: #6F42C1">CommentExample</span></div><div class="line"><span style="color: #24292E">{</span></div><div class="line highlight"><span style="color: #24292E"> </span><span style="color: #D73A49">class</span><span style="color: #24292E"> </span><span style="color: #6F42C1">Program</span></div><div class="line"><span style="color: #24292E"> {</span></div><div class="line"><span style="color: #24292E"> </span><span style="color: #D73A49">static</span><span style="color: #24292E"> </span><span style="color: #D73A49">void</span><span style="color: #24292E"> </span><span style="color: #6F42C1">Main</span><span style="color: #24292E">(</span><span style="color: #D73A49">string</span><span style="color: #24292E">[] </span><span style="color: #6F42C1">args</span><span style="color: #24292E">)</span></div><div class="line"><span style="color: #24292E"> {</span></div><div class="line"><span style="color: #24292E"> </span><span style="color: #D73A49">int</span><span style="color: #24292E"> </span><span style="color: #6F42C1">x</span><span style="color: #24292E"> </span><span style="color: #D73A49">=</span><span style="color: #24292E"> </span><span style="color: #005CC5">10</span></div><div class="shaku-underline shaku-underline-solid" style="left:6ch"><span class="shaku-underline-line" style="left:0ch">----------</span></div><div class="shaku-callout" style="left:6ch"><span class="shaku-callout-arrow" style="left:1ch"></span><p>Hello World!</p></div><div class="line"><span style="color: #24292E"> }</span></div><div class="line"></div><div class="line"><span style="color: #24292E"> }</span></div><div class="line"><span style="color: #24292E">}</span></div></code></div></pre>

1 comment on commit b928756

@vercel
Copy link

@vercel vercel bot commented on b928756 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.vercel.app
shaku-web-jserzanp.vercel.app

Please sign in to comment.