Close full mode


Git RepositoryEdit on Github

Syntax highlighting

  • For some Markdown parser e.g. GitHub Markdown, they support syntax highlight in code block.
  • Therefore, you can add a language identifier to code block to enable syntax highlight.
  • For example, to syntax highlight Ruby code:
require 'redcarpet'
markdown ="Hello World!")
puts markdown.to_html

Syntax highlight in .NET Thailand website

  • For C#, please use cs, csharp or dotnet. REF
  • For example:
// Hello World! program
// Program.cs file
using System;
namespace HelloWorld
public class Program
public static void Main(string[] args)
Console.WriteLine("Hello World!");
Loading comments...