PrismJS / PrismJS/prism

Suppport C# alias for c#

Open
#3,681 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Description

Motivation
Please explain the problem you're having/why you propose this feature. Ex. I'm always frustrated when [...]

Support c# alias for c# language.

The basic motivation is github support this, so it would be better if we can get same behavior with prism result and github result for markdown files as docs:

GitHub result:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
    static void Main(string[] args)
    {
    }
    }
}

Raw content:

```c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
    static void Main(string[] args)
    {
    }
    }
}
```

Description
A clear and concise description of what you want to happen.

image

Alternatives
A clear and concise description of any alternative solutions or features you've considered, if applicable.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Prism's C# grammar and the language-alias handling used for Markdown code fences. Compare c# with the existing C# identifier and verify that both produce the same highlighting result; done means the alias is accepted consistently with GitHub's behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, javascript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.