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
-
- Master
- Posts: 104
- 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",
},
}
There is something wrong with everything that is popular.
(Charles Fort)
(Charles Fort)
-
Topic author - Member
- Posts: 7
- 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-".