# Add \`language::BufferSnapshot::highlighted_text_for_range\` \(\#24060\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/17872260e637ecb67ce868f27ec4a3b135260940)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 17872260e637ecb67ce868f27ec4a3b135260940

Requested commit: 17872260e637ecb67ce868f27ec4a3b135260940

Commit: 17872260e637ecb67ce868f27ec4a3b135260940

Tree: e7a53fd76b44fa3121283854fd2f24b29a7a7179

Author: Michael Sloan

Committer: GitHub

## Message

```
Add `language::BufferSnapshot::highlighted_text_for_range` (#24060)

In support of work on

https://github.com/zed-industries/zed/tree/new-ui-for-edit-prediction-with-lsp-completions,
where we want to be able to extract a range of the buffer as
`HighlightedText`.

Release Notes:

- N/A
```

## Parents

- [9a6b9e312404fc40d984e7f0acb9ba9bf0ede0d2](https://git.cafe/gitcafe/zed/commit/9a6b9e312404fc40d984e7f0acb9ba9bf0ede0d2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/17872260e637ecb67ce868f27ec4a3b135260940?format=markdown)
