Thread: File Extensions

  1. #1
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078

    File Extensions

    In MSVC++ 6.0, how do you make it so that your header files without normal extensions, highlight properly (as C++) every time you open the file. If I open the file, right click on it, and select C/C++ as the language, it activates proper highlighting, however, once I save, close, and reopen the file, highlighting is gone. Is it possible to associate certain file extensions with certain languages manually in MSVC++'s options?

    I notice that if I open up IOSTREAM or FSTREAM without extensions, highlighting is done properly, but if I create a header with no extension, I have to tell it to highlight every single time I open it. I'm wondering if MSVC++ is just set up to only highlight those particular files because they are a part of the standard library, or if it's possible to mimic this.

  2. #2
    Registered User Cela's Avatar
    Join Date
    Jan 2003
    Posts
    362
    I don't know of any way to get Visual Studio to assume C/C++ files no matter what. The only way I've found is to open the file properties window and manually change the file type. Of course, using the proper extensions from the beginning solves the problem, right? :-)
    *Cela*

  3. #3
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078
    Yeah, but what's the fun in that!?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  2. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  3. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  4. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 10:57 AM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM