clojure-lsp-intellij icon indicating copy to clipboard operation
clojure-lsp-intellij copied to clipboard

Syntax highlighting for ClojureDocs examples

Open devurandom opened this issue 1 year ago • 1 comments

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.

devurandom avatar Mar 15 '24 13:03 devurandom

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

ericdallo avatar Mar 15 '24 13:03 ericdallo

@devurandom, the #52 fixed this :)

ericdallo avatar May 27 '24 15:05 ericdallo

Beautiful! image

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

devurandom avatar May 28 '24 15:05 devurandom

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

ericdallo avatar Jul 01 '24 17:07 ericdallo

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.

devurandom avatar Jul 01 '24 18:07 devurandom