# Pygments 而非 highlight.js 用于语法高亮

**URL:** <https://meta.discourse.org/t/pygments-rather-than-highlight-js-for-syntax-highlighting/391544>\
**Category:** Feature\
**Tags:** code\
**Created:** [2025年十二月17日 10:56 UTC](https://meta.discourse.org/t/pygments-rather-than-highlight-js-for-syntax-highlighting/391544 "2025-12-17T10:56:35Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dbitouze](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@dbitouze](https://meta.discourse.org/u/dbitouze)\
**Post date:** [2025年十二月17日 13:59 UTC](https://meta.discourse.org/t/pygments-rather-than-highlight-js-for-syntax-highlighting/391544/5 "2025-12-17T13:59:37Z")

</div>

确实，另一个主题可以提供更漂亮的颜色，但问题仍然存在：`highlight.js` 的词法分析器是极简主义的。

---

_[View the full topic](https://meta.discourse.org/t/pygments-rather-than-highlight-js-for-syntax-highlighting/391544)._
