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
17872260e6Michael Sloan committed on 1/31/2025, 11:36:24 PM· committed by GitHubparent9a6b9e3
1 file changedLine totals unavailable