<p></p>
<p dir="auto">When color chooser by double click is enabled, it opens not only for valid color hex strings like <code>#FFFFFF<span class="ml-1 d-inline-block border circle color-border-subtle" style="background-color: #FFFFFF; height: 8px; width: 8px;"></span></code> or <code>#FFF</code>, but for anything, that ends with 3 or 6 hex digits (doesn't reproduce if they are in the middle or start).</p>
<p dir="auto">It could be described by following grep's extended regex:</p>
<pre lang="grep"><code>(#|0x|\x|[^0-9a-zA-Z])([0-9A-Fa-f]{3}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8}|[0-9A-Fa-f]{12}|[0-9A-Fa-f]{16}|[0-9A-Fa-f]{24}|[0-9A-Fa-f]{32})[^0-9a-zA-Z]
</code></pre>
<p dir="auto">Although I'm not so sure about 8 xdigits per channel, having it supported by editor plugin should not be a burden; at least 4 digits per channel are covered by gtk3 editor, and I guess 8 digits would be also all covered by GdkRGBA color format (assuming it's used by this plugin instead of GdkColor). Of course, if other recognition way is used than regexp, than it could be just 2^n digits per channel for any positive n.</p>
<p dir="auto">May be good if it tried to maintain existing precision or it would easily upgrade 1 digit per channel to all 8. :)</p>
<p dir="auto">For alpha channel - I'm not sure, is there way to decide if it goes first or last (perhaps - either do it last by default or add option to change order).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/issues/1166">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5WNGLIL267RMI3S2TU6C7TFANCNFSM5P2RDNHQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ4TKJBF5KHLM2PLSLTU6C7TFA5CNFSM5P2RDNH2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4RIMJPHQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany-plugins/issues/1166</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/issues/1166",
"url": "https://github.com/geany/geany-plugins/issues/1166",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>