Skip to content

Wrong CSS for C code highlighting (light theme) #18670

Closed
braoult/gitea
#1
@braoult

Description

@braoult

Gitea Version

1.16.1

Operating System

N/A

Browser Version

N/A

Can you reproduce the bug on the Gitea demo site?

Yes

Description

The light theme does not make a difference between preprocessor directives (.cp) and comment lines (.cm):

.chroma .cm { color: #999988; } /* CommentMultiline */
.chroma .cp { color: #999999; } /* CommentPreproc */
.chroma .cpf { color: #999999; } /* CommentPreprocFile */

This makes the code difficult to read :

Screenshot_2022-02-08_11-50-04

.cp (and possibly .cpf) should be different than comments.

For example (I am not an artist, so the values below are not a suggestion :-) :

.chroma .cp { color: #109295 } /* CommentPreproc */
.chroma .cpf { color: #4C4DBC; } /* CommentPreprocFile */

Allow to have a more readable code :

Screenshot_2022-02-08_11-54-40

Metadata

Metadata

Assignees

No one assigned

    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