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

syntax-highlighting on the rendered diagram #228

Open
MrCoder opened this issue Dec 13, 2024 · 0 comments
Open

syntax-highlighting on the rendered diagram #228

MrCoder opened this issue Dec 13, 2024 · 0 comments

Comments

@MrCoder
Copy link
Collaborator

MrCoder commented Dec 13, 2024

This is similar to a theme or you can even call it a theme which may become the default theme. The improvement is to assign more detailed colours/styles to rendered diagram.

What do you mean by "syntax-highlighting"?

"syntax-highlighting" means assigning colours and styles to the rules and tokens. It includes the font styling, background and borders.

List of rules and tokens can be find at sequenceParser.g4 and sequenceLexer.g4.

What colours should be used?

Follow Intellij IDEA's Light Theme:

ZenUML Rule/Token Intellij Editor Element Color Bold Italic Background Border
Participant Class name 000000
Sync Message Instance method 00627A
Async Message Static method 00627A Y
Comment Block comment 8C8C8C Y
Fragment (Alt, Loop, etc.) Keyword 0033B3
stereotype Annotation name 9E880D
Creation Message Constructor declaration 00627A
Number in Atom Number 1750EB

How does it impact inline colours? Can it be disabled?

When colours are used for different purpose on the same diagram, it introduces confusions. Theme must be explicitly enabled by a keyword. When the user tries to use inline styling, a warning should be given to tell the user to disable theme.

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

No branches or pull requests

1 participant