Unable to use ColorCode

Mar 3, 2013 at 4:37 PM
Edited Mar 3, 2013 at 5:19 PM
I am not able to use the ColorCode dll. I created a CSharp project. added reference to ColorCode

added the following code to my Form 1.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ColorCode;
using System.IO;

namespace WindowsFormsApplication1
public partial class Form1 : Form
public Form1()

private void Form1_Load(object sender, EventArgs e)

  string sourceCode = File.ReadAllText(@"X:\Dev\Products\gsqlparser_dotnet_trial_2_2_6\democollections\Backup\crudReportor\crudReporter.cs");

  string colorizedSourceCode = new CodeColorizer().Colorize(sourceCode, Languages.CSharp);

When I run the project I get the following error:

Error 3 The type or namespace name 'ColorCode' could not be found (are you missing a using directive or an assembly reference?) X:\Dev\SyntaxHighlighting\WindowsFormsApplication1\Form1.cs 9 7 WindowsFormsApplication1
Jun 9, 2013 at 1:51 PM
Try to cleanup the solution and delete manually all files from bin\Debug and try again.

Can try like
ColorCode.CodeColorizer colorizer = new ColorCode.CodeColorizer();
string colorizedSourceCode = colorizer.Colorize(sourceCode, Languages.CSharp);