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

Add syntax highlighting to Clojure documentation codeblocks #52

Closed isaiasvallejos closed 1 month ago

isaiasvallejos commented 1 month ago

Add syntax highlighting to codeblocks from Clojure documentation when viewed in IntelliJ's documentation window, improving readability and comprehension within the docs code.

Solves issue: https://github.com/clojure-lsp/clojure-lsp-intellij/issues/38

Key changes:

How to test:

Run plugin, install a theme or use a default one and try out.

Preview:

Using theme "One Dark Vivid Italic", before/after:

before - a picture of clojure docs without highlighting of clojure.core/defn after - a picture of clojure docs with highlighting of clojure.core/defn
isaiasvallejos commented 1 month ago

@ericdallo Suggestions applied! Thanks a lot.

Also added the CHANGELOG in the unreleased section, that's correct? Let me know if we need anything else.

PS: I didn't rebase the commits, so on merge, maybe we need to do a squash.

ericdallo commented 1 month ago

It looks and works great! Thank you for your first contribution!