# 语法高亮

Wiki 页面支持使用以下自动语法高亮突出显示各种语言的代码：

````
```ruby
  def foo
    puts 'bar'
  end
````

```

该块必须以三个反引号开始，可选地后跟着该块包含的语言的名称。有关可以语法高亮的语言列表，请参阅 [Pygments 支持的语言列表](http://pygments.org/docs/lexers/)。

块内容应缩进到与起始反引号相同的程度。该块必须以与起始反引号相同缩进程度的三个反引号结束。

### 完成了！

你已经了解了一些有关如何最好地与 GitHub 社区的其他人分享关于你的工作的重要信息，无论你的项目是否足够庞大，还是你只是刚刚开始并设置一个清晰简洁的 README 文件。

要阅读有关本文所涵盖主题的更多信息，我们的 [创建新仓库](https://help.github.com/articles/creating-a-new-repository/)、[编辑仓库中的文件](https://help.github.com/articles/editing-files-in-your-repository/)、[为仓库贡献者设置指南](https://help.github.com/articles/setting-guidelines-for-repository-contributors/) 以及 [选择许可证](http://choosealicense.com/) 是很好的起点。或者，请查看其他的 [GitHub 指南](https://itechub.gitbook.io/github-guides-zhcn) 以继续学习。

最后，如果你对为项目构建文档网站感兴趣，我们建议你使用 [GitHub Pages](https://pages.github.com/)。  


```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://github.highlight.ink/documenting-projects/syntax-highlighting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
