vala-code icon indicating copy to clipboard operation
vala-code copied to clipboard

Dim [Version ...]'s?

Open peteruithoven opened this issue 6 years ago • 1 comments

I'm not sure this is the right "level" to tackle this issue, please let me know if it's not. In .vapi files you can have a lot of [Version ...] codes, which I think are usually a bit less important than the other code. They can make vapi files quite hard to read when there are a lot fo them. One example:

https://github.com/elementary/gala/blob/1024813560668152814a72fd93dc6a93b226eb04/vapi/mutter-clutter-1.0.vapi#L4715-L4730

Would there be a way to slightly dim (visually less important) these [Version ...] codes? A bit like what happens with comments for example?

peteruithoven avatar Jun 19 '19 19:06 peteruithoven

Hallo, @peteruithoven . Thanks for your input.

I don't think I can force the editor to dim those lines, but I agree with you that they make the file look visually heavy.

I can mark then as some special token, that way it can be colored differently. I cannot guarantee the color themes will show them dimmed, though. I'll look at the colorization for other languages to see how they handle this kind of construct.

thiagojedi avatar Jun 24 '19 21:06 thiagojedi