Inconsistent handling of C# vs csharp

Steps to reproduce

Create an inline code comment such as:

/// <summary>
/// My C# XML comment is here.
/// </summary>

with language C# and compare with language csharp

Expected result

Same highlighting, preferably csharp style

Actual result

Different highlighting.


  • Operating system: Windows 10
  • Debug info:
    Obsidian version: v0.13.33
    Installer version: v0.13.23
    Operating system: Windows 10 Enterprise 10.0.19042
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: none
    Snippets enabled: 0
    Safe mode: on

Map C# and csharp to same syntax highlighting

Additional information

According to the PrismJS list of supported languages, the supported codes for C# are:

  • csharp
  • cs
  • dotnet

…so you should use one of those for a C# code block.

Hope this helps,


Ah, just thought it strange as C# almost highlights properly.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.