> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 插入代码

> 钉钉文档代码块功能：通过工具栏「插入 → 代码块」一键嵌入代码，支持 50 种编程语言语法高亮，可切换深色/浅色主题，适合技术文档和开发说明场景。

钉钉文档支持在文档中插入代码块，点击工具栏 **插入—>代码块** 即可插入，共支持 50 种编程语言，代码块样式还支持设置深色/浅色主题

<img src="https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/XYvenvQzj6ojloyZ/img/e53af3c0-4bc3-4557-820c-c69dc38e4676.gif" referrerPolicy="no-referrer" alt="/Users/wenshuang/Library/Application Support/iDingTalk/ScreenCapture/阿里钉录屏_2025-09-09 140139.gif" />

目前支持的编程语言如下：

<img src="https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/XYvenvQzj6ojloyZ/img/62d3776d-8cb8-43f5-9b35-2047b042dc5b.png?x-oss-process=image/crop,x_0,y_0,w_444,h_10243/ignore-error,1" referrerPolicy="no-referrer" alt="image.png" />

***

<img src="https://alidocs.oss-cn-zhangjiakou.aliyuncs.com/res/XYvenvQzj6ojloyZ/img/11ed9279-91a4-4fa5-b2be-f3c4a422c596.png" referrerPolicy="no-referrer" alt="image.png" />
