Configure syntax language
Set syntax language configuration in Unity Version Control.
Read time 1 minuteLast updated 21 days ago
Configure the language that Unity Version Control (UVCS) uses to syntax highlight the contents of files or revisions in the side by side diff tool. The following options are available for syntax highlighting:
- : UVCS doesn’t perform any syntax highlighting.
Plain text - : UVCS automatically selects a language based on the file extension. You can also select one of the supported languages in the menu.
Automatic - : Create a
Customfile to customize the language extensions.languages.conf
Create a languages.conf
file
To customize the syntax highlight language, create a languages.conflanguages.confsyntaxhighlightplastic4.<fileextension>:<language>Example languages.conf
file
languages.conf# syntax language definition by file extension.js:JavaScript.custom:XML.txt:Plain text
Supported languages
The following are supported languages that UVCS can syntax highlight:- C#
- Visual Basic
- Java
- JavaScript
- XAML
- Python v2.x
- Python v3.x
- JSON
- XML
- Batch file
- C
- C++
- CSS
- HTML
- INI file
- Assembly
- Lua
- Markdown
- MSIL
- Pascal
- Perl
- PHP
- PowerShell
- RTF
- Ruby
- SQL
- VBScript