# 구문 하이라이터가 \`--word-diff\`를 지원하지 않습니다

**URL:** <https://meta.discourse.org/t/the-syntax-highlighter-doesnt-support-word-diff-s/387410>\
**Category:** Product Support\
**Created:** [11월 2, 2025, 9:03오후 UTC](https://meta.discourse.org/t/the-syntax-highlighter-doesnt-support-word-diff-s/387410 "2025-11-02T21:03:55Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)\
**Post date:** [11월 2, 2025, 11:28오후 UTC](https://meta.discourse.org/t/the-syntax-highlighter-doesnt-support-word-diff-s/387410/3 "2025-11-02T23:28:00Z")

</div>

@sam, 감사합니다. 사후적으로 생각해 보면, 이건 불가능할 것 같습니다:

> <https://github.com/highlightjs/highlight.js/issues/2911#issuecomment-739586916>
>
> \*\*Is your request related to a specific problem you're having?\*\*
> The \`diff\` sup…port currently is at the line level (lines that start with -/+). It would be great to support word diff (via \`git show --word-diff\`).
> 
> | diff | word diff |
> |:-|:-:|
> | \`-The quick brown fox jumps over the lazy dog\`\<br\>\`+A quick brown fox jumps over the lazy dog\` | \`\[-The-\]{+A+} quick brown fox jumps over the lazy dog\` |
> 
> \*\*The solution you'd prefer / feature you'd like to see added...\*\*
> The word diff is an extension of \`diff\`, so \`\[-The-\]{+A+} quick brown fox jumps over the lazy dog\` will have different meaning for diff and word diff. It might be better to add a modified version of \`diff\` called \`worddiff\` as a new language option.

---

_[View the full topic](https://meta.discourse.org/t/the-syntax-highlighter-doesnt-support-word-diff-s/387410)._
