Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE highlighting ✨ #56

Merged
merged 23 commits into from
Jan 2, 2025
Merged

IDE highlighting ✨ #56

merged 23 commits into from
Jan 2, 2025

Conversation

Jolanrensen
Copy link
Owner

@Jolanrensen Jolanrensen commented Dec 5, 2024

Fixes #37
Fixes #47
Fixes #23

Adds:

  • KDocHighlightAnnotator which can color tags in the editor (even in dumb mode)
    • Processors can override getHighlightsFor(docContent) to provide this extra information (HighlightInfo).
    • TagDocProcessors have extra helper functions like getHighlightsForInlineTag() which can be overridden and getArgumentHighlightOrNull()
  • KDocHighlightListener highlights related brackets when the caret touches them, is loaded from the annotator
    • HighlightInfos can add related other HighlightInfos for this
  • ExportAsHtmlAnnotator, which creates a < > gutter icon next to @ExportAsHtml annotations which, when clicked, can open a generated HTML file to preview the rendered KDoc
  • Refactor to split DocContent and DocText (now value classes, not String typealias, which is safer)
  • Autocomplete and auto-popup when writing {, @, or $

image

image

image

image

@Jolanrensen Jolanrensen changed the title Ide highlighting ✨ IDE highlighting ✨ Dec 5, 2024
@Jolanrensen Jolanrensen marked this pull request as ready for review January 2, 2025 14:14
@Jolanrensen Jolanrensen merged commit 960f85f into main Jan 2, 2025
@Jolanrensen Jolanrensen deleted the ide-highlighting branch January 2, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant