Add support for cs files! Yes I do use vitepress to document C# libraries 😁
See original GitHub issueIs your feature request related to a problem? Please describe.
Although C# is one of the available languages it does not recognize cs extension while trying to use <<< to import code.
[vite] Internal server error: No language registration for cs
Describe the solution you’d like
I’m not sure how it work internally but it seems in only missing the recognition of cs files as C# language!
Describe alternatives you’ve considered
If it can be done by default great. If this needs an configuration maybe updating the docs would suffice.
Additional context
I have support for other languages would improve the usage (and popularity) of vitepress 🤓
Validations
- Follow our Code of Conduct
- Read the docs.
- Read the Contributing Guidelines.
- Check that there isn’t already an issue that asks for the same feature to avoid creating a duplicate.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to Build a Modern Documentation Site with VitePress
Step 2: Install VitePress ... You've successfully installed VitePress and Vue and added them as dev dependencies. Now you can start creating ...
Read more >Working with VitePress and The New Docs Theme! - YouTube
ℹ️ AboutIn this video, I do some live coding as we dive into VitePress and theming for the new Vue docs site!
Read more >Markdown Extensions - VitePress
VitePress comes with built in Markdown Extensions. Header Anchors #. Headers automatically get anchor links applied. Rendering of anchors can be ...
Read more >Build a blog with Vitepress and Vue.js
Even though Vitepress can be used to build well-designed documentation ... Create a Markdown file with the title index.md and add some dummy ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry, I misunderstood. You’re right, VitePress doesn’t support the
<<< @/test.cs
syntax indeed.Have you tried
csharp
/c#
instead ofcs
?The currently supported languages are documented in https://github.com/shikijs/shiki/blob/main/docs/languages.md#all-languages