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.

gfdasdf
When the emailService.Send method throws an exception, Hangfire will retry it automatically after a delay (that is increased with each attempt). The retry attempt count is limited (10 by default), but you can increase it. Just apply the AutomaticRetryAttribute to the NotifyNewComment method:
test
dfgdfgdfg
test
public class Program
{
	public static void Main()
	{
		  int n, i, m=0, flag=0;  
          Console.Write("Enter the Number to check Prime: ");
		  //read number
          n = int.Parse(Console.ReadLine());  
		  //divide it by 2 and get remainder
          m=n/2;    
		  //loop until the remainder is reach, check if it is divisble
          for(i = 2; i <= m; i++)    
          {    
			  // if divisible by any number from 2 to m, then it is not prime
             if(n % i == 0)    
             {    
               Console.WriteLine("Number is not Prime.");    
               flag=1;    
               break;    
             }    
          }    
		  // if flag =0, means,above code when flag =1 is assigned is not executed and hence it is prime number
          if (flag==0){
			   Console.WriteLine("Number is Prime.");
		  }
	}
}
public class Program
{
	public static void Main()
	{
		  int n, i, m=0, flag=0;  
          Console.Write("Enter the Number to check Prime: ");
		  //read number
          n = int.Parse(Console.ReadLine());  
		  //divide it by 2 and get remainder
          m=n/2;    
		  //loop until the remainder is reach, check if it is divisble
          for(i = 2; i <= m; i++)    
          {    
			  // if divisible by any number from 2 to m, then it is not prime
             if(n % i == 0)    
             {    
               Console.WriteLine("Number is not Prime.");    
               flag=1;    
               break;    
             }    
          }    
		  // if flag =0, means,above code when flag =1 is assigned is not executed and hence it is prime number
          if (flag==0){
			   Console.WriteLine("Number is Prime.");
		  }
	}
}
public class Program
{
	public static void Main()
	{
		  int n, i, m=0, flag=0;  
          Console.Write("Enter the Number to check Prime: ");
		  //read number
          n = int.Parse(Console.ReadLine());  
		  //divide it by 2 and get remainder
          m=n/2;    
		  //loop until the remainder is reach, check if it is divisble
          for(i = 2; i <= m; i++)    
          {    
			  // if divisible by any number from 2 to m, then it is not prime
             if(n % i == 0)    
             {    
               Console.WriteLine("Number is not Prime.");    
               flag=1;    
               break;    
             }    
          }    
		  // if flag =0, means,above code when flag =1 is assigned is not executed and hence it is prime number
          if (flag==0){
			   Console.WriteLine("Number is Prime.");
		  }
	}
}
public class Program
{
	public static void Main()
	{
		  int n, i, m=0, flag=0;  
          Console.Write("Enter the Number to check Prime: ");
		  //read number
          n = int.Parse(Console.ReadLine());  
		  //divide it by 2 and get remainder
          m=n/2;    
		  //loop until the remainder is reach, check if it is divisble
          for(i = 2; i <= m; i++)    
          {    
			  // if divisible by any number from 2 to m, then it is not prime
             if(n % i == 0)    
             {    
               Console.WriteLine("Number is not Prime.");    
               flag=1;    
               break;    
             }    
          }    
		  // if flag =0, means,above code when flag =1 is assigned is not executed and hence it is prime number
          if (flag==0){
			   Console.WriteLine("Number is Prime.");
		  }
	}
}
test again
Console.WriteLine("Test")
public class Program
{
	public static void Main()
	{
		  int n, i, m=0, flag=0;  
          Console.Write("Enter the Number to check Prime: ");
		  //read number
          n = int.Parse(Console.ReadLine());  
		  //divide it by 2 and get remainder
          m=n/2;    
		  //loop until the remainder is reach, check if it is divisble
          for(i = 2; i <= m; i++)    
          {    
			  // if divisible by any number from 2 to m, then it is not prime
             if(n % i == 0)    
             {    
               Console.WriteLine("Number is not Prime.");    
               flag=1;    
               break;    
             }    
          }    
		  // if flag =0, means,above code when flag =1 is assigned is not executed and hence it is prime number
          if (flag==0){
			   Console.WriteLine("Number is Prime.");
		  }
	}
}
public class Program
{
	public static void Main()
	{
		  int n, i, m=0, flag=0;  
          Console.Write("Enter the Number to check Prime: ");
		  //read number
          n = int.Parse(Console.ReadLine());  
		  //divide it by 2 and get remainder
          m=n/2;    
		  //loop until the remainder is reach, check if it is divisble
          for(i = 2; i <= m; i++)    
          {    
			  // if divisible by any number from 2 to m, then it is not prime
             if(n % i == 0)    
             {    
               Console.WriteLine("Number is not Prime.");    
               flag=1;    
               break;    
             }    
          }    
		  // if flag =0, means,above code when flag =1 is assigned is not executed and hence it is prime number
          if (flag==0){
			   Console.WriteLine("Number is Prime.");
		  }
	}
}
public class Program
{
	public static void Main()
	{
		  int n, i, m=0, flag=0;  
          Console.Write("Enter the Number to check Prime: ");
		  //read number
          n = int.Parse(Console.ReadLine());  
		  //divide it by 2 and get remainder
          m=n/2;    
		  //loop until the remainder is reach, check if it is divisble
          for(i = 2; i <= m; i++)    
          {    
			  // if divisible by any number from 2 to m, then it is not prime
             if(n % i == 0)    
             {    
               Console.WriteLine("Number is not Prime.");    
               flag=1;    
               break;    
             }    
          }    
		  // if flag =0, means,above code when flag =1 is assigned is not executed and hence it is prime number
          if (flag==0){
			   Console.WriteLine("Number is Prime.");
		  }
	}
}
Console.WriteLine("sause");
2
1
asd
public class Program
{
	public static void Main()
	{
		  int n, i, m=0, flag=0;  
          Console.Write("Enter the Number to check Prime: ");
		  //read number
          n = int.Parse(Console.ReadLine());  
		  //divide it by 2 and get remainder
          m=n/2;    
		  //loop until the remainder is reach, check if it is divisble
          for(i = 2; i <= m; i++)    
          {    
			  // if divisible by any number from 2 to m, then it is not prime
             if(n % i == 0)    
             {    
               Console.WriteLine("Number is not Prime.");    
               flag=1;    
               break;    
             }    
          }    
		  // if flag =0, means,above code when flag =1 is assigned is not executed and hence it is prime number
          if (flag==0){
			   Console.WriteLine("Number is Prime.");
		  }
	}
}
private int  CheckFibo(int len){
int a = 0, b = 1, c = 0;  
    Console.Write("{0} {1}", a,b);  
    for (int i = 2; i < len; i++)  
    {  
        c= a + b;  
        Console.Write(" {0}", c);  
        a= b;  
        b= c;  
    }  
return c;
}
            Console.WriteLine("Hello World!");
            Console.WriteLine("Hello World!");
abcd
test 2
this is a test 
Hooorrrraaaaaa !!!!!
Rohit Hadiya
Hello World !!
OMG TEST
Bah
                            <em>n/a</em>
using System;

namespace Server2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}
OMG TEST
TEST
for (int i = 0; i < 10; i++)
    Console.WriteLine("Number " + i);
Console.WriteLine("Hello, world!");
Console.WriteLine("Hello, hangfire!");
Console.WriteLine("Hello, world!");
Console.WriteLine("Hello, hangfire!");
test
Console.WriteLine("Request ID")
Hi
Console.Write("plop")
Console.WriteLine("Hello, hangfire!");
Console.Writeline("teste")
Console.WriteLine("Hello, world!");
Clound
Console.WriteLine("Howdee y'all!");
Console.WriteLine("Howdee y'all!");
Test Hello Word
Console.WriteLine("Hello, world!");