Skip to content

Syntax highlighting for doc pages is broken / looks weird #10911

Closed
@odersky

Description

@odersky

For instance:

https://dotty.epfl.ch/docs/reference/contextual/givens.html
https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html
https://dotty.epfl.ch/docs/reference/enums/adts.html

What syntax highlighter is used for the doc pages? The current rendering looks slightly worse than just doing nothing. What stands out is the parameter names and parentheses in bold black whereas the rest in light blue blends away.

Also, it seems declared identifiers, all type identifiers and keywords look the same light blue color. Keywords should certainly be highlighted differently. It would also be nice to render types differently from terms.

But if we had super-trivial highlighter that only highlights keywords that would already be an improvement over the status quo.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions