Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using extensionless header filenames 1

Status
Not open for further replies.

UnknownPerson

Programmer
Dec 4, 2001
80
0
0
BR
I use MS Visual Studio 6.0 and .NET 2003 and have an annoying problem. The environment doesn't recognize the standard extensionless header filenames, so I lose all syntax highlights that are really helpful for visual people like me.

In VS 6.0 I can force it manually and for each file (which is really clumsy) and I didn't find the option in .NET.

Anyone know how to make these two understand that the standard says no extensions at all?

Thanks
 
In my VC6 they are highlighted OK.

Dunno about .Net version, but in the old VC6 this is managed by the file
...\Common\MSDev98\Bin\LANGEXT.DAT
which in my installation looks like this:
Code:
langext.dat - Map explicit filename to a language
[C/C++]
algorithm bitset cassert cctype cerrno cfloat ciso646 climits clocale cmath complex
csetjmp csignal cstdarg cstddef cstdio cstdlib cstring ctime cwchar cwctype
deque exception fstream functional iomanip ios iosfwd iostream istream iterator
limits list locale map memory new numeric ostream queue
set sstream stack stdexcept streambuf string strstream typeinfo utility valarray vector
xcomplex xios xiosbase xlocale xlocinfo xlocmon xlocnum xloctime xmemory xstddef xstring xtree xutility


/Per
[sub]
www.perfnurt.se[/sub]
 
Ok, I understood what you said. That helped me to understand a bit more about how it highlights the code...

But, I'm talking about _my_headers. For example, imagine my application has a custom CInterfaceDescription class. I would have to add it to the langext.dat file? That wouldn't make sense.

I am wanting more of an option to treat _by default_ the language as C/C++. That way I can open my files and they will be detected as C++ files...

The programmers at Microsoft could copy and paste some Unix VI command code =o) Vi scans the file and detects it automagically. The "file" command also does this...

So help is still wanted!!
 
See MSDN, articles ID Q294704 and Q181506...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top