Reputation: 946
When writing a post in CodePen, I can set a code block with JavaScript, this way:
javascript
console.log ("Hello, World");
How can I set the code for C#? I tried it with this code but it didn't work:
C#
using System;
...
Console.WriteLine ("Hello, World");
Upvotes: 0
Views: 599
Reputation: 1034
I know this is an old post, 3 years now, but if you still need it you might try the JSfiddle version for C# / .NET users.
Link: .NET Fiddle
I too would like to see someone put up a website like CodePen but for C# developers.
Upvotes: 0
Reputation: 7701
Unfortunately, they appear to not have listed C# so far:
https://blog.codepen.io/documentation/faq/what-kind-of-markdown-does-codepen-use/
Currently, as of 27 July 2018, the supported list of languages is:
You can always try to use csharp
or cs
instead, it might work.
Upvotes: 1