- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Our FORTRAN projects contain a lot of different include file extensions:
*.STR for structures
*.CMN for common block definitions
*.PRM for parameter definitions
*.INC for other includes (such as DLL function interfaces etc.)
In Developer Studio you can right-click on the main file window, choose 'Properties' and thence change the language for that file (so you can get whatever syntax colouring you like). However, this is not permananet, if you close and reopen the file it defaults to no syntax highlighting (text file).
Does anyone know a way around this? Can you specify which file extensions you wish to be treated as FORTRAN?
*.STR for structures
*.CMN for common block definitions
*.PRM for parameter definitions
*.INC for other includes (such as DLL function interfaces etc.)
In Developer Studio you can right-click on the main file window, choose 'Properties' and thence change the language for that file (so you can get whatever syntax colouring you like). However, this is not permananet, if you close and reopen the file it defaults to no syntax highlighting (text file).
Does anyone know a way around this? Can you specify which file extensions you wish to be treated as FORTRAN?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I created two macros and added them to a toolbar. Whenever I want the syntax coloring, I just click on the shortcut.
For more details, see Help, Developer Studio 98, Automating tasks, Macros.
The macros are attached.
Greg
For more details, see Help, Developer Studio 98, Automating tasks, Macros.
The macros are attached.
Greg
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page