Feature Request:
Chaitanyabsprip opened this issue · 8 comments
should support hex string like "0xAARRGGBB" etc
The format is used in flutter app and web dev. There might be other but I'm only familiar with this one. Perhaps there could be a way to set a custom string matcher? That'll solve the issue for any and every format of color codes.
Huh, I've never seen that before, only RRGGBBAA.
That's also whats already implemented for "#". The presence of both might be a bit of an issue when autodetecting.
you match for hex color values starting with #
right, I am asking for support for 0x
as the prefix
also, AARRGGBB https://api.flutter.dev/flutter/dart-ui/Color-class.html
you match for hex color values starting with # right, ...
Wrong.
I'm asking for 0x
as an alternative for #
.
That's also whats already implemented for "#". The presence of both might be a bit of an issue when autodetecting.only knowsonly knowsonly knows
If 0x
and #
are interchangeable, then 0xFFFFFF00
would be FFFFFF
with alpha 00
, because #
assumes RRGGBBAA. That would conflict with your request.
determine the color format based on filetype?
0x
is in some c libraries as well such as raylib like so Color red = GetColor(0xFF0000);