How do I make the Fortran highlighting function working on my include files?
The fortran files with extension .for or .f90 are highligthed, but not my include files ( *.inc)
I'm using .inc to separate include and source files, for me and so the IDE does not understand include files as source files (or it tries to compile them)
Fortran include files syntax highlighting
-
- Active Contributor
- Posts: 34
- Joined: Fri Jun 14, 2019 11:05 pm
- Reputation: 0
- Location: Goslar, Germany
- Status: Offline
- Contact:
Re: Fortran include files syntax highlighting
Open the settings panel (Ctrl-,) choose "Workspace" (or "User"), extend "Text Editor", select "Files", and add an item *.inc with value vms-fortran.
Or directly: Edit .vscode/settings.json and set
Or directly: Edit .vscode/settings.json and set
Code: Select all
{
"files.associations": {
"*.inc": "vms-fortran",
},
}
If you think it's expensive to hire a professional, wait until you hire an amateur.
-
Topic author - Member
- Posts: 5
- Joined: Thu Jan 07, 2021 10:55 am
- Reputation: 0
- Status: Offline
Re: Fortran include files syntax highlighting
Thanks,
it works now, I was missing the "vms-".
it works now, I was missing the "vms-".