Pandoc: C# syntax highligting in github extended markdown

Created on 27 Apr 2015  路  2Comments  路  Source: jgm/pandoc

I've got some notes in GitHub Flavored Markdown, e.g.:

```csharp for (int i = 0 ; i < 10; i++) { // Code to execute. } ```

I don't get any syntax highlighting when I try to convert it from markdown_github to HTML. Replacing csharp with C# doesn't help. I expect something like

for (int i = 0 ; i < 10; i++)
{
 // Code to execute.
}

For other languages (e.g. C or JavaScript) it works fine.

low enhancement

Most helpful comment

This is not obvious and should be documented somewhere in
pandoc itself (as opposed to highlighting-kate), but cs should work.

+++ salmiakki [Apr 26 15 15:46 ]:

I've got some notes in GitHub Flavored Markdown, e.g.:

```csharp for (int i = 0 ; i < 10; i++) { // Code to execute. }

``````

I don't get any syntax highlighting when I try to convert it from markdown_github to HTML. Replacing csharp with C# doesn't help. I expect something like

```csharp
for (int i = 0 ; i < 10; i++)
{
// Code to execute.
}
``````

For other languages (e.g. C or JavaScript) it works fine.


Reply to this email directly or view it on GitHub:
https://github.com/jgm/pandoc/issues/2117

All 2 comments

This is not obvious and should be documented somewhere in
pandoc itself (as opposed to highlighting-kate), but cs should work.

+++ salmiakki [Apr 26 15 15:46 ]:

I've got some notes in GitHub Flavored Markdown, e.g.:

```csharp for (int i = 0 ; i < 10; i++) { // Code to execute. }

``````

I don't get any syntax highlighting when I try to convert it from markdown_github to HTML. Replacing csharp with C# doesn't help. I expect something like

```csharp
for (int i = 0 ; i < 10; i++)
{
// Code to execute.
}
``````

For other languages (e.g. C or JavaScript) it works fine.


Reply to this email directly or view it on GitHub:
https://github.com/jgm/pandoc/issues/2117

It does, thanks!

Maybe it could be a good idea to add C# and csharp (both used in GFM) as aliases to pandoc or even highlighting-kate?

Was this page helpful?
0 / 5 - 0 ratings