CodeGuru
Earthweb Search
Forums Wireless Jars Gamelan Developer.com
CodeGuru Navigation
Member Sign In
User ID:
Password:
Remember Me:
Forgot Password?
Not a member?
Click here for more information and to register.
Flat panel TV's
Digital Cameras
RAM

jobs.internet.com

internet.commerce
Partners & Affiliates
Website Load Testing
Home Improvement
Desktop Computers
Laptops
Promotional Products
Online Education
Dental Insurance
Cell Phones
Online Universities
Best Price
Promotional Pens
Promos and Premiums
Baby Photo Contest
Boat Donations


RSS Feeds

RSSAll

RSSVC++/C++

RSS.NET/C#

RSSVB

See more EarthWeb Network feeds

Home >> Visual C++ / C++ >> Visual Studio >> Editor Tips >> Syntax Highlighting

Best Practices for Developing a Web Site. Checklists, Tips, Strategies & More. Download Exclusive eBook Now.

Visual Studio Syntax Highlighting for C# Files
Rating:

Tom Archer - MSFT (view profile)
October 3, 2000

Environment: Visual Studio and C#
(continued)

Access FREE Mainsoft Tools:
Access FREE Mainsoft Tools:
Demo:
Integrate Microsoft SharePoint into IBM Lotus Notes
Mainsoft's SharePoint Integrator for Lotus Notes is an easy-to-deploy, client side plug-in that gives Notes users easy access to Microsoft SharePoint document libraries. SharePoint Integrator makes collaboration easy for enterprises that use Lotus Notes and have workgroups that rely on SharePoint for basic document management and team collaboration.


Download these IBM resources today!


Webcast: Hacking 101--The Top 10 Attacks in Web Applications
Learn about the three most common web application attacks, including how they occur and what can be done to prevent them.

eKit: Web Application Security
Discover how IBM Rational AppScan Standard Edition can help you detect vulnerabilities in your Web applications. The new Web Application Security eKit provides you with valuable resources, including whitepapers, demos, and additional information on the benefits of testing your Web applications.

Tutorial: Create Secure Java Applications Productively
This is the first in a two-part tutorial series creating secure Java-based Web applications using Rational Application Developer, Data Studio and Rational AppScan.

eKit: Web 2.0 Developer
Take advantage of open, flexible Web 2.0 technologies, like social software and mash-ups. The IBM Web 2.0 Developer eKit has been updated with the latest best practices & technologies from IBM.

Here are the instructions necessary to have Visual Studio syntax-highlight your C# files.

  1. Locate the following key in your registry (using regedit or any other registry editor):

    HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\Text Editor\Tabs/Language Settings\C/C++\FileExtensions

    This value will contain a value like the following:

    cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2

    Simply add the .cs extension to the end as in this example:

    cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2;cs

  2. Download the usertype.dat file (at the bottom of this document) and copy it to the same directory as msdev.exe (Visual Studio editor) (By default this will be c:\program files\microsoft visual studio\common\msdev98\bin). This file contains all the C# keywords

Downloads

Download (zipped) usertype.dat file (containing C# keywords) - 1 Kb

About the Author
I am a Program Manager and Content Strategist for the Microsoft MSDN Online team managing the Windows Vista and Visual C++ developer centers. Before being employed at Microsoft, I was awarded MVP status for the Visual C++ product. A 20+ year veteran of programming with various languages - C++, C, Assembler, RPG III/400, PL/I, etc. - I've also written many technical books (Inside C#, Extending MFC Applications with the .NET Framework, Visual C++.NET Bible, etc.) and 100+ online articles.

Tools:
Add www.codeguru.com to your favorites
Add www.codeguru.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed

Best Practices for Developing a Web Site. Checklists, Tips & Strategies. Download Exclusive eBook Now.
Guide to Developing a Web Site. Best Practices, Tips and Strategies. Download Exclusive eBook Now.
Is it time to make your move to the multi-threaded and parallel processing world? Find out!
Intel Go Parallel Portal: Translating Multicore Power into Application Performance. Learn more.
Improve How You Manage Information: Becoming a Better Project Manager. Exclusive eBook - Download Now.


RATE THIS ARTICLE:   Excellent  Very Good  Average  Below Average  Poor  

(You must be signed in to rank an article. Not a member? Click here to register)

Latest Comments:
Solution for Visual Studio .net - Legacy CodeGuru (03/08/2003)
How about Visual Studio .NET? - Legacy CodeGuru (07/23/2002)
Same approach works for Java - Legacy CodeGuru (01/08/2002)

View All Comments
Add a Comment:
Title:
Comment:
Pre-Formatted: Check this if you want the text to display with the formatting as typed (good for source code)



(You must be signed in to comment on an article. Not a member? Click here to register)


JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers