# GitHub语言支持

功能支持的 GitHub 编程语言概述。

<!-- If you make changes to this article, also update any feature-level articles to reflect the same changes in language support. -->

## 关于支持的语言

大多数 GitHub 功能都起作用，无论代码编写的语言如何。 可以根据GitHub已知的任何语言搜索代码或启用语法高亮显示。 欲了解更多信息，请参阅 \[AUTOTITLE]（/search-github/在-github-上搜索/搜索代码#按语言搜索） 或 [创建和突显代码块](/zh/enterprise-server@3.22/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting)。

某些 GitHub 产品具有目前仅支持一部分编程语言的功能。

GitHub 功能的核心语言包括 C、C++、C#、Go、Java、JavaScript、Kotlin、PHP、Python、Ruby、Rust、Scala 和 TypeScript。 对于支持包管理器的功能，当前支持的包管理器及其相关语言包含在表中。

某些功能支持其他语言或包管理器。 如果想要了解某个功能是否支持另一种语言或请求支持语言，请访问 [GitHub 社区讨论](https://github.com/orgs/community/discussions)。

<!-- Source for the following tables lives in data/tables/supported-code-languages.yml -->

## 支持的核心语言 GitHub Enterprise Server

|语言 | [Code scanning](/zh/enterprise-server@3.22/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning) | [Dependency graph, Dependabot alerts](/zh/enterprise-server@3.22/code-security/supply-chain-security/understanding-your-software-supply-chain/dependency-graph-supported-package-ecosystems#supported-package-ecosystems) | [Dependabot version updates, Dependabot security updates](/zh/enterprise-server@3.22/code-security/dependabot/dependabot-version-updates/about-dependabot-version-updates#supported-repositories-and-ecosystems) | [GitHub Actions](/zh/enterprise-server@3.22/actions/automating-builds-and-tests/about-continuous-integration#supported-languages) | [GitHub Packages](/zh/enterprise-server@3.22/packages/learn-github-packages/introduction-to-github-packages#supported-clients-and-formats) | |：----|：----：|：----：|：----：|：----：|：----：|

|
C
|✗
|
|
|✗
\| |

|
C++
|✗
|
|
|✗
\| |

|
C#
|✗
|`dotnet` CLI
|`dotnet` CLI
|✗
|`dotnet` CLI |

|
Go
|✗
|Go modules
|Go modules
|✗
\| |

|
Java
|✗
|Maven, Gradle
|Maven, Gradle
|✗
|Maven, Gradle |

|
JavaScript
|✗
|npm, Yarn
|npm
|✗
|npm |

|
Kotlin
|✗
|Maven, Gradle
|Maven, Gradle
|✗
|Maven, Gradle |

|
PHP
|third-party [^1]
|Composer
|Composer
|✗
\| |

|
Python
|✗
|pip
|pip
|✗
\| |

|
Ruby
|✗
|RubyGems
|RubyGems
|✗
|RubyGems |

|
Rust
|✗
|✗
|✗
|✗
\| |

|
Scala
|third-party [^1]
|Maven
|Maven, Gradle
|✗
\| |

|
Swift
|✗
|✗
|✗
|✗
|Swift Package Manager |

|
TypeScript
|✗
|npm, Yarn
|npm
|✗
|npm |

> \[!NOTE]

Gradle 对依赖关系图的支持仅限于上传通过 Dependabot alerts 使用 依赖项提交 API 获取的数据。

[^1]: PHP and Scala are supported for code scanning by third-party actions, but not by CodeQL.