Jim Collier

Jim Collier

  • NA
  • 20
  • 0

Listing computer programs on Web pages

Jun 11 2017 2:53 PM
Anyone know of a program, or perhaps short program procedure perhaps including CSS styling which can be used to show a computer program on a Web page which preserves original formatting.
 
For instance, suppose I have a very short C# program *which I want to display on a Web page*, as shown below.  How do I accomplish this?
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;
namespace ConsoleApplication1
{
  class Program
  {
     static void Main(string[] args)
     {
         Console.WriteLine("2,000 Things Was Here..");
     } 
  }
}
 
 
Of course it's easy to type this into a Visual Studio editor.  But I want a Web page that shows what the Visual Studio user sees without grabbing a screen shot of the page.   

Answers (1)