Open
Description
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.
Metadata
Assignees
Labels
No labels