- Copy pascfg folder to C:\Users\{user}\.vscode\extensions\pascfg\syntaxes folder to enable syntax highlighting for .cfg files.
- Restart VSCode
- Open a cfg file.
VSCode should detect file extension and apply highlighting automatically. If it does not then follow below steps.
- Press
Ctrl + Shift + P
keys and search for "Change Language Mode" and click on it. - In the dropdown click on "Configure File Association for '.cfg' files"
- In the list of languages displayed select "PASCFG"
- This will apply the syntax highlighting for PAS cfg files.
- Colors of the keywords depends on the theme selected in VSCode. This syntax has been developed and tested on Dark themes. Hence, they will be the preference.
- To apply/force custom colors for keywords modify settings.json file of VSCode.
- See example code for settings.json in vscode-custom-token-color-settings.json file.