Online Source Code Syntax Highlighter

Overview

This is my online .NET source code syntax highlighter for C# and C++ programming languages.

It converts C# and C++ source code to colorized (syntax highlighted) HTML documents.

I use it when I post code snippets to my blog or to wiki. Written in PHP.

Instructions

  • Write or paste your code into the upper text box.
  • Select right language from the combobox.
  • Click the "Highlight" button.

Feedback is very much welcomed!

 

Language:   
Styles:   
Tabs:  

Preview | HTML | Styles

// This is an example of C# syntax highlight

static String FromZeroToNine()
{
    String s = @" From 0 to 9: ";
 
    for (int i = 0; i < 10; i++)
    {
        s += i.ToString("D") + " ";
    }
 
    return s;
}