Code-snippet color issue in docfx v2.70.2
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 890
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 10
Description
**Describe the bug**
I have upgraded my docfx version 2.56.7 to the latest version v2.70.2. But in latest version the code-snippet section in the yml files is generated with the class="lang-csharp" for all the code-snippets even it is xml language. As checked it shows latest version by default it generates yml file lang as csharp by reading the code-snippets from xml documentation, so it affects the color of code-snippet.
**To Reproduce**
Steps to reproduce the behavior:
1. I have passed the dll and the xml documentation with code-snippets having both c# and the xml code in the src folder.
2. It generates yml file with lang-csharp for all files which then converts to html with less color effect as compared to older version due to it consider xml code as c# lang.
**Expected behavior**
I need to set the lang-xml for the xaml or xml language and set lang-csharp for C# language.
**Context (please complete the following information):**
- OS: Windows
- Docfx version: [2.70.2]
**Additional context**
Expected output (older version):

Actual Output (latest version):

Contributor guide
Assessment
This issue has not been assessed yet.