skip to primary navigationskip to content

Department of Computer Science and Technology

Pagemasters' notes

Pagemasters' notes

Editor support for CRF-T files

The uconfig.txt and coursedb.txt files used on the departmental web site use a file format called CRF-T. This page provides some guidance for adding syntax highlighting for CRF-T files to your editor.

Visual Studio Code (recommended)

To add a CRF-T extension to Microsoft's VS Code editor, download crft-0.0.1.vsix. Then in VSCode go to Extensions / ... / Install from VSIX... and open the downloaded file.

Notepad++ (experimental)

To add a CRF-T extension to Notepad++:

  • Download the user-defined language (UDF) file crft.udl.xml.
  • In Notepad++: Language → User Defined Language → Define your language..., then click Import... and choose crft.udl.xml. Click OK.
  • Close and reopen the “Define your language” dialog (or restart Notepad++)

For CRF-T files that use a .txt extension (coursedb.txt, uconfig.txt, uconfig2.txt, ...) open the file and pick Language → CRF-T (near the bottom of the menu, under the user-defined languages). Avoid setting the UDL’s ext to txt, as that would hijack all .txt files.