question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for cs files! Yes I do use vitepress to document C# libraries 😁

See original GitHub issue

Is 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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xfqcommented, Jun 26, 2022

Sorry, I misunderstood. You’re right, VitePress doesn’t support the <<< @/test.cs syntax indeed.

1reaction
xfqcommented, Jun 26, 2022

Have you tried csharp / c# instead of cs?

The currently supported languages are documented in https://github.com/shikijs/shiki/blob/main/docs/languages.md#all-languages

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found