文档

​
​

Development

User Acquisition

Monetization

工业

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

此页面不支持所选语言。
​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
    • Migrate from Git
    • Migrate from Perforce
    • Version Control settings
    • Configure the client
      • Client configuration files
      • Use filter pattern files
      • Use value matching pattern files
      • Globally configure the branch explorer
      • Configure EOL conversion
      • Configure external tools
      • Configure syntax language
      • Configure the Open with menu
    • Version Control workflow
    • Version Control tools
  • On-Prem
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Configure syntax language

Set syntax language configuration in Unity Version Control.
阅读时间1 分钟
最后更新于 7 个月前

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 a
    languages.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

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Create a languages.conf file

      • Example languages.conf file

    • Supported languages


报告此页面的问题