'In the CodePen markdown editor, can I set a C# Code Block?
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");
Solution 1:[1]
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:
- html
- markdown
- haml
- jade
- slim
- css
- sass
- scss
- stylus
- js
- coffeescript
- livescript
- shell
- ruby
- php
- sql
You can always try to use csharp
or cs
instead, it might work.
Solution 2:[2]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | phuzi |
Solution 2 | Aubrey Love |