clojure-lsp / clojure-lsp-intellij

Intellij Plugin for Clojure & ClojureScript development via Language Server (LSP) made in Clojure
https://clojure-lsp.io
MIT License
76 stars 5 forks source link

Syntax highlighting for ClojureDocs examples #38

Closed devurandom closed 1 month ago

devurandom commented 3 months ago

Is your feature request related to a problem? Please describe.

When I press ^Q on a Clojure function, the plugin shows me "examples" with code snippets from ClojureDocs. These examples are in plain text.

Describe the solution you'd like

The examples could be syntax highlighted to make them more appealing to the eye.

ericdallo commented 3 months ago

We need to understand how to support that via Intellij API, this is where the code lives

ericdallo commented 1 month ago

@devurandom, the #52 fixed this :)

devurandom commented 1 month ago

Beautiful! image

This is not applied to code examples in the docstrings themselves, right? image

ericdallo commented 4 days ago

@devurandom that happens because the docstring is not in a codeblock, so there is no way for us to know: image

devurandom commented 4 days ago

Thanks! I thought, because the example is displayed in a box with a grey background and monospace font, that it was treated by the parser like any code block.