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

expressions highlighter #111

Merged
merged 13 commits into from
Oct 27, 2024

Conversation

sylviameows
Copy link
Contributor

implements a feature previously provided by recode (the "expression highlighter").

what it does:
edits minecraft's chat box field to provide syntax highlighting for minimessage and DF expressions in commands like /plot name, /txt, and /lore as well as when editing variable items like strings, styled text, numbers, and variables.

examples:
example of minimessage highlighting
example of expression highlighting

also includes a config which allows you to customize how the expression highlighter appears:
example of config

there may be some strange quirks with it though that may need more ironing out, but in its current state it is definitely passable

@RedVortexDev RedVortexDev mentioned this pull request Oct 14, 2024
17 tasks
@RedVortexDev
Copy link
Member

RedVortexDev commented Oct 14, 2024

image
Seems like decoration tags apply to the tags after it

image
characters after wrong % codes start to leak the color code

@sylviameows
Copy link
Contributor Author

image
Seems like decoration tags apply to the tags after it

I tried to fix this, but escaping decoration tags is not as straightforward as one might assume, if anyone else would like to take a crack at figuring it out, i kept my attempt inside the code but commented out. (this also isnt detrimental to user experience imo)

image
characters after wrong % codes start to leak the color code

This bug has been fixed.

@RedVortexDev RedVortexDev merged commit 71c234f into DFOnline:main Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants