This PR introduces several styling enhancements to improve the visual display of content in the hover box, addressing the issue described in lsp4intellij#356.
Approach
The content within the hover box is processed as HTML. The following improvements have been applied to the HTML code used for displaying hover content:
Change the font styles in paragraph, code, and header tags.
Add a theme-aware background highlight color to code tags. This color is calculated by inverting the font color and darkening it slightly.
Add horizontal padding to the code tags. Since CSS padding does not function inside the hover box, spaces were manually added at the beginning and end of the content in code tags. Code tags that end with a newline were excluded from this adjustment to avoid creating extra rows in certain scenarios.
Purpose
This PR introduces several styling enhancements to improve the visual display of content in the hover box, addressing the issue described in lsp4intellij#356.
Approach
The content within the hover box is processed as HTML. The following improvements have been applied to the HTML code used for displaying hover content:
Samples