Click here to Skip to main content
15,868,051 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am creating a tutorial site, I created my own website with html and now i want to paste my tested codes with same format. I have lot of programs each time apply styles is very hard. how can i achieve this? is there any dynamic way?

Please let me know & help to me

Example:

What I have tried:

using System;

namespace programs
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}






Posted
Comments
gggustafson 8-Apr-20 0:48am    
You tagged this question as "JavaScript, CSS3, HTML5" but what your supplied is C#. I hope you know they are not the same.
Member 10458660 11-Apr-20 15:13pm    
I have c# code in visual studio like above code. i want to post that code in my website with same format and color. How can i achieve this. please check this website url https://www.tutorialspoint.com/csharp/csharp_constants.htm how they achieved code showing same format like visual studio.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900