C# .NET - TextPad and C# - Asked By Dave Jones on 03-Jan-07 08:58 AM

Apologies if this is in the wrong forum.

Is there a way to get TextPad 4.3.1 to use c# syntax ?
It has lots of programming anguage syntax settings except that one. Thought about posting this in the Windows XP forum but could not see the ask question link .


Sushila Patel replied to Dave Jones on 03-Jan-07 10:19 AM

Check if the link helps

"How Do I enable C# Syntax Highlighting in Textpad ? "

http://theshiva.us/technicalblog/archive/2006/12/26/how-do-i-enable-csharp-asp-net-syntax-highlighting-in-textpad.aspx

Textpad and c# - sundar k replied to Dave Jones on 03-Jan-07 10:26 AM

Before you can do syntax highlighting with C# files, you will need to obtain its syntax definition file, CSHARP.SYN. This is included with TextPad and can be downloaded from http://www.textpad.com/add-ons/syna2g.html. Follow the installation instructions at the bottom of that page, then:

  1. From the Configure menu, choose New Document Class. The Document Class Wizard is displayed.
  2. In the Document Class Name box, type C# and click Next.
  3. In the Class Members box, type *.cs and click Next.
  4. Tick the box to enable syntax highlighting.
  5. From the drop-down list, choose "csharp.syn" and click Next.
  6. Click Finish.

Add the C# compiler as a tool in TextPad

  1. From the Configure menu, choose Preferences. The Preferences dialog box is displayed.
  2. Select "Tools".
  3. Click Add, and choose the option "Program".
  4. Browse for CSC.EXE. It should be in a subfolder of your main Windows 2000 installation folder, named "ComPlus\v2000.14.1812"
  5. Optionally rename the tool by clicking it twice, slower than double click speed, and typing C#;. You may insert an "&" before the character you want to use as a menu mnemonic.
  6. If necessary, click the up arrow to move the new tool to the required position on the menu.
  7. Click OK.

 Add a filter for C# files to the Open dialog box

  1. From the Configure menu, choose Preferences. The Preferences dialog box is displayed.
  2. Select "File Name Filters".
  3. Click New.
  4. Change the description to C#.
  5. Type *.cs, in the wild cards box.
  6. If necessary, click Move Up, to move the filter to the required position.
  7. Click OK.

Test it all works

No point in starting with anything complicated, so try Hello World at this stage:

  1. From the File menu, select Open and set Files of Type to C#.
  2. Browse for Hello.cs in NGWSSDK\Samples\Deployment\1_HelloWorld, and click Open
  3. Check that comments are displayed in green and keywords in blue.
  4. From the Tools menu, select C#.
  5. Check that the Command Results shows "Tool completed successfully", then close that window.
  6. From the Tools menu, select Run. The Run dialog box is displayed.
  7. In the Command box, type Hello.exe and click OK.
  8. Check that a console window is created, displaying "Hello World using C#!".
  9. Close the console window.

That's it!

extracted from - http://www.textpad.com/support/faq/csharp.html#syntax

Clip Libraries for C# syntax in TextPad - Deven Sinha replied to Dave Jones on 08-Jan-09 07:12 AM

Hi ,

for getting the syntax of C# in Textpad. C# Library files can be downloaded from following URL:
http://www.textpad.com/add-ons/cliplibs.html
John Coder replied to Dave Jones on 28-May-09 09:46 AM

I just left TextPad and went to Zeus: http://www.zeusedit.com

It handles C# just fine.