Configure syntax language
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:
Plain text
: UVCS doesn’t perform any syntax highlighting.Automatic
: UVCS automatically selects a language based on the file extension. You can also select one of the supported languages in the menu.Custom
: Create alanguages.conf
file to customize the language extensions.
Create a languages.conf
file
To customize the syntax highlight language, create a languages.conf
configuration file in the syntaxhighlight
directory under the plastic4
directory.
Write each configuration on a new line in the format .<fileextension>:<language>
.
Example languages.conf
file
# 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