-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update for the new color scheme format #27
Comments
Apologies for the delay. Thanks for the report! I've been out of the loop on what's been happening on ST development, but will try to take a look. |
No worries, thanks to By the way, when you look into the new format, which is read in a cascaded way (e.g. a user can override some installed theme for a few selected items by placing only those items inside a theme under the same name in the User folder), it might be possible to avoid creating a new modified theme altogether, but just place the user PersistentRegexHighlight definitions in a similar way so that ST3 would just "cascade" them together to achieve the same effect |
I tried to dig into this problem a while ago but failed miserably. I reverted to an older ST3 version instead. Now at a new job and miss my favorite plug-in. @skuroda Do you have a time estimate (how many hours) to implement this new support? @eugenesvk : Could you write a "step by step how to" for your solution using prompt_new_color_scheme? I tried it, and things got all messed-up, I had to re-install Sublime. |
@IntoCpp
the variable redBright is defined in the same color scheme file as:
and this allows me to use these colors in PersistentRegexHighlight.sublime-settings, e.g. for the first color FF5370
NB! Don't forget to disable the new color scheme generation prompt as mentioned above for the plugin not to break
However, if you're referring to the rest of my comment re. the great cascading nature of the new color scheme format, I've not used it myself as I switched to a manually customized scheme due to issues such as this when different plugins struggle to create new modified schemes and haven't moved to the new better ways |
As you've probably noticed, I haven't been doing plug in development for
quite a while, so no real time estimate. In doing that, i also haven't been
keeping up with how the sublime text ecosystem has been updated to better
support some of the (hacky) solutions I used in the original solution. I
might get back to it at some point, but don't have any immediate plans.
…On Thu, Dec 12, 2019, 10:06 AM Evgeny ***@***.***> wrote:
@IntoCpp <https://github.com/IntoCpp>
I've just added the following code to my *MyTheme.sublime-color-scheme*
(this declares the colors the plugin needs to use for highlighting)
{ "name" : "||<-- Package: Persistent Regex Highlight -->||"},
{ "name" : "Highlight Color FF5370",
"scope" : "highlight.color.FF5370",
"foreground" : "var(redBright)" },
{ "name" : "Highlight Color 00FF00",
"scope" : "highlight.color.00FF00",
"foreground" : "var(greenbright)" },
{ "name" : "Highlight Color B52A1D",
"scope" : "highlight.color.B52A1D",
"foreground" : "var(red6)" },
the variable *redBright* is defined in the same color scheme file as:
"variables" : {
"redBright" : "hsl(350, 100%, 66%)"
},
and this allows me to use these colors in
*PersistentRegexHighlight.sublime-settings*, e.g. for the first color
*FF5370*
{ //highlight non-breaking space
"pattern" : "\\xA0+|\u00A0+|\u202F+",
"color" : "FF5370", //the scope for this color is highlight.color.FF5370
"underline" : true,
"underline_style" : "squiggly" },
*NB!* Don't forget to disable the new color scheme generation prompt as
mentioned above for the plugin not to break
"prompt_new_color_scheme" : false, // Prevent being prompted for generation of new color schemes. NB! if disabled, need to manulally add 'highlight.color.HEXcolor' scope to youre color scheme
However, if you're referring to the rest of my comment re. the great
cascading nature of the new color scheme format, I've not used it myself as
I switched to a manually customized scheme due to issues such as this when
different plugins struggle to create new modified schemes and haven't moved
to the new better ways
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27?email_source=notifications&email_token=AAKEN4FD6623U6UK72P6K3DQYJVS3A5CNFSM4FWVUFVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGXLAYI#issuecomment-565096545>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKEN4GZ3TLUM34V7XX5CT3QYJVS3ANCNFSM4FWVUFVA>
.
|
Sublime has recently introduced a new color scheme format (
JSON
), which makes your great plugin choke since it's internally trying work with the old tmThemeXML
format.Would you please update it to also work with the new format?
Thanks!
The text was updated successfully, but these errors were encountered: