Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 1.2 KB

README.MD

File metadata and controls

20 lines (18 loc) · 1.2 KB

PASolutions tools for VSCode

Syntax Highlight for Director Script

  1. Copy pascfg folder to C:\Users\{user}\.vscode\extensions\pascfg\syntaxes folder to enable syntax highlighting for .cfg files.
  2. Restart VSCode
  3. Open a cfg file.

VSCode should detect file extension and apply highlighting automatically. If it does not then follow below steps.

  1. Press Ctrl + Shift + P keys and search for "Change Language Mode" and click on it.
  2. In the dropdown click on "Configure File Association for '.cfg' files"
  3. In the list of languages displayed select "PASCFG"
  4. 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.

References