Skip to content

Commit

Permalink
C#: Add "dotnet" alias.
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Mar 5, 2018
1 parent 4cb9888 commit 405867c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions components/prism-csharp.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ Prism.languages.insertBefore('csharp', 'keyword', {
}
}
});

Prism.languages.dotnet = Prism.languages.csharp;
2 changes: 1 addition & 1 deletion components/prism-csharp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion examples/prism-csharp.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<h1>C#</h1>
<p>To use this language, use the class "language-csharp".</p>
<p>To use this language, use one of the following classes:</p>
<ul>
<li>"language-csharp"</li>
<li>"language-dotnet"</li>
</ul>

<h2>Comments</h2>
<pre><code>// Single line comment
Expand Down

0 comments on commit 405867c

Please sign in to comment.