> ## Documentation Index
> Fetch the complete documentation index at: https://craft-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 格式化

> 通过格式工具栏、斜杠菜单、Markdown 和键盘快捷键，全面掌握 Craft 中的文本格式化。

Craft 提供多种文本格式化方式，从可视化的格式工具栏到以键盘为主的 Markdown 命令。无论你喜欢点击、输入，还是两者结合，总有一种方式适合你。

## 文本、块与页面格式

本节介绍的是**文本格式**：直接作用于文字本身的内联样式和特殊元素。它与 Craft 中另外两个层级的样式设置相辅相成：

* **文本格式**（本节内容）– 粗体、斜体、高亮等内联样式，以及日期、表情符号和链接等特殊元素
* **块格式** – 标题、列表、引用和代码块等结构元素（参见[块与页面](/zh-Hans/write-and-edit/blocks-and-pages)）
* **页面样式** – 颜色、背景和字体等视觉设计（参见[样式设置](/zh-Hans/write-and-edit/styling)）

## 四种文本格式化方式

<Tabs>
  <Tab title="格式工具栏">
    选中任意文本后，格式工具栏便会出现，提供粗体、斜体、高亮、链接等选项。这是最直观的格式化方式，无需记忆任何命令。

    <img src="https://mintcdn.com/craft-support/XJjEDsqRyI4wI0NM/images/write-and-edit/formatting/en/content/formatting-toolbar.png?fit=max&auto=format&n=XJjEDsqRyI4wI0NM&q=85&s=c178a7130a008e74bf1fda6b2723a8ff" alt="选中文本上方显示的格式工具栏" width="1568" height="936" data-path="images/write-and-edit/formatting/en/content/formatting-toolbar.png" />

    想在一个地方查看所有文本和块样式？点击右上角的 `Aa` 按钮打开**格式面板**。

    <img src="https://mintcdn.com/craft-support/XJjEDsqRyI4wI0NM/images/write-and-edit/formatting/en/content/format-panel.png?fit=max&auto=format&n=XJjEDsqRyI4wI0NM&q=85&s=0d73e0b9c22d4ce094edf5cf3d1510fa" alt="显示标题、正文和块样式的格式面板" width="1568" height="1121" data-path="images/write-and-edit/formatting/en/content/format-panel.png" />
  </Tab>

  <Tab title="斜杠菜单">
    输入 `/` 打开命令菜单，继续输入即可筛选出你需要的样式或操作。这也是探索 Craft 各项功能的好方法。

    <img src="https://mintcdn.com/craft-support/XJjEDsqRyI4wI0NM/images/write-and-edit/formatting/en/content/slash-menu.png?fit=max&auto=format&n=XJjEDsqRyI4wI0NM&q=85&s=8d32e9801d8f08732a5ce77f50de42b7" alt="输入时显示列表命令的斜杠菜单" width="1568" height="923" data-path="images/write-and-edit/formatting/en/content/slash-menu.png" />

    [进一步了解斜杠菜单](/zh-Hans/write-and-edit/formatting/slash-menu)
  </Tab>

  <Tab title="Markdown">
    边写边使用熟悉的 Markdown 语法：输入 `**粗体文本**`，在补全星号的瞬间，文字就会变成**粗体文本**。

    <img src="https://mintcdn.com/craft-support/XJjEDsqRyI4wI0NM/images/write-and-edit/formatting/en/content/markdown-typing.png?fit=max&auto=format&n=XJjEDsqRyI4wI0NM&q=85&s=f263d6f6466e0a7070c576f13b202c47" alt="Markdown 语法转换为格式化文本" width="1568" height="936" data-path="images/write-and-edit/formatting/en/content/markdown-typing.png" />

    [查看所有 Markdown 快捷输入](/zh-Hans/write-and-edit/formatting/markdown-shortcuts)
  </Tab>

  <Tab title="键盘快捷键">
    `Cmd+B` 加粗、`Cmd+I` 倾斜等快捷命令，一旦记住便是最快的格式化方式。

    <img src="https://mintcdn.com/craft-support/XJjEDsqRyI4wI0NM/images/write-and-edit/formatting/en/content/shortcuts-panel.png?fit=max&auto=format&n=XJjEDsqRyI4wI0NM&q=85&s=fd80212ae106ee8d86da23737bbccf2e" alt="Craft 中的键盘快捷键面板" width="1568" height="1029" data-path="images/write-and-edit/formatting/en/content/shortcuts-panel.png" />

    [浏览所有键盘快捷键](/zh-Hans/introduction/shortcuts)
  </Tab>
</Tabs>

这四种方式可以随意搭配使用，根据手头的工作灵活切换。想深入了解以键盘为主的方法，请参阅[快速样式技巧](/zh-Hans/write-and-edit/formatting/quick-styling)。

## 全部格式化功能

<CardGroup cols={2}>
  <Card title="拼写检查与更正" href="/zh-Hans/write-and-edit/formatting/spell-check">
    支持 34 种语言的拼写检查，可全局或按文档单独设置
  </Card>

  <Card title="Markdown 快捷输入" href="/zh-Hans/write-and-edit/formatting/markdown-shortcuts">
    使用 Markdown 语法边写边排版
  </Card>

  <Card title="使用斜杠菜单" href="/zh-Hans/write-and-edit/formatting/slash-menu">
    双手不离键盘即可使用所有功能
  </Card>

  <Card title="查找与替换" href="/zh-Hans/write-and-edit/formatting/find-replace">
    在文档中搜索并替换文本
  </Card>

  <Card title="包裹所选内容" href="/zh-Hans/write-and-edit/formatting/surround-selection">
    用方括号、圆括号或花括号包裹选中的文本
  </Card>

  <Card title="添加日期" href="/zh-Hans/write-and-edit/formatting/dates">
    插入可跳转到每日笔记的日期徽章
  </Card>

  <Card title="使用表情符号" href="/zh-Hans/write-and-edit/formatting/emoji">
    输入 `:` 加表情符号名称即可插入表情符号
  </Card>

  <Card title="下标与上标" href="/zh-Hans/write-and-edit/formatting/subscript-superscript">
    排版数学符号、公式和脚注
  </Card>

  <Card title="快速样式技巧" href="/zh-Hans/write-and-edit/formatting/quick-styling">
    组合快捷键、Markdown 和斜杠菜单，提升排版速度
  </Card>

  <Card title="数学公式" href="/zh-Hans/write-and-edit/math-formulas">
    使用 LaTeX 语法编写公式，支持行内或独立公式块
  </Card>
</CardGroup>
