This sample allows you to highlight C# source code. Highlighting is based on http://hilite.me web service, which is called from a background job in a truly asynchronous way – neither controller, nor any other entity is waiting for a completion. Results are delivered via WebSockets using SignalR.

All the snippets are removed every day at 12:00 AM UTC.

public string HiMom() {

     return "Hi Mom";

}
public string good·bye()
{
return "good·bye";
}
public string opoiki()
{
  return void;
}
test
public string HelloWorld()
{
return "Hello World";
}
var d = "some test";
var s = "shit;
public string HelloWorld()
{
    return "Hello World, KKKK";
}
public string HelloWorld()
{
return "Hello World";
}
public string HelloWorld()
{
return "Hello World";
}
    @*
        public int rain_size { get; set; }
        public int rain_rate_last { get; set; }
        public int rain_rate_hi { get; set; }
        public int rainfall_last_15_min { get; set; }
        public int rain_rate_hi_last_15_min { get; set; }
        public int rainfall_last_24_hr { get; set; }
        public int rain_storm { get; set; }
        public int rain_storm_start_at { get; set; }
        public int solar_rad { get; set; }
        public double uv_index { get; set; }
        public int rx_state { get; set; }
        public int trans_battery_flag { get; set; }
        public int rainfall_daily { get; set; }
        public int rainfall_monthly { get; set; }
        public int rainfall_year { get; set; }
        public int rain_storm_last { get; set; }
        public int rain_storm_last_start_at { get; set; }
        public int rain_storm_last_end_at { get; set; }
    *@
sdfsfdsd
public ActionResult Create([Bind(Include="SourceCode")] CodeSnippet snippet)
        {
            try
            {

                if(ModelState.IsValid)
                {
                    snippet.
public string HelloWorld()
{
return "Hello World";
}
[HttpPost]
        public ActionResult Create([Bind(Include="SourceCode")] CodeSnippet snippet)
        {
            try
            {

                if(ModelState.IsValid)
                {
                    snippet.CreatedAt = DateTime.UtcNow;

                    using (MiniProfiler.Current.Step("Service call"))
                    {
                        snippet.HighlightedCode = HighlightSource(snippet.SourceCode);
                        snippet.HighlightedAt = DateTime.UtcNow;
                    }
                    _db.CodeSnippets.Add(snippet);
                    _db.SaveChanges();

                    return RedirectToAction("Details", new { id = snippet.Id });
                }
            }
            catch(HttpRequestException)
            {
                ModelState.AddModelError("", "Highlighting service returned error. Try again later.");
            }

            return View(snippet);
        }
var c = 1;
c++;
Console.WriteLine("Whats the purpose of this?")
Console.WriteLine("This is Danger");
Console.WriteLine("Danger");
Console.WriteLine("Hello Hangfire");
Console.WriteLine("Hello from denmark");
Console.WriteLine("Hello, world!");
Console.WriteLine("Hello, world!");
Console.WriteLine("Hello, world!");