Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hex support for colors #15

Open
Fusezion opened this issue Sep 4, 2022 · 0 comments
Open

Hex support for colors #15

Fusezion opened this issue Sep 4, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Fusezion
Copy link

Fusezion commented Sep 4, 2022

I'd love to see hex color support added to this extension sadly I'm not skilled enough to create/edit extensions or understand nearly enough how to but what I can do is offer the json and regex.
<#ff00ff> and <##ff00ff> due to skript formatting

here's the regex and json for it

{
"match": "(?i)(\\<#*#[a-f0-9]{6}\\>)",
"name": "skript.color.hex"
}

while I was testing the regex I couldn't get a valid check with the \\ but I'm guessing that's nothing important
as all the other syntax in syntax.json uses it.
maybe removing the support for 1 of # would be good as skript wouldn't accept it anyways and instead would return an error

@AyhamAl-Ali AyhamAl-Ali added the enhancement New feature or request label Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants