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

[Feature request] Ability to 'export' colors to the VS color settings #313

Open
nurbles opened this issue Jan 23, 2024 · 13 comments
Open

[Feature request] Ability to 'export' colors to the VS color settings #313

nurbles opened this issue Jan 23, 2024 · 13 comments
Assignees
Labels
enhancement Highlight Syntax highlight

Comments

@nurbles
Copy link

nurbles commented Jan 23, 2024

This is just a dream, so feel free to immediately discard if this is not possible...

With the startup issue that v7.7x is having with syntax coloring in VS2022, it might be useful to be able to have Codist write all of our color settings to the matching settings directly within VS2022 "Fonts & Colors" settings. I understand that many colors don't have equivalents and others may come from other extensions, but at least the most basic (keywords, numbers, strings, variables, etc.) would keep code from looking quite so alien first thing in the morning.

This assumes that Codist is NOT performing any syntax coloring initially and only starting after I import my saved colors (or otherwise interact with the Codist styling settings). If Codist is responsible for the strange initial colors, then I cannot think of a reason why the colors I'm porting cannot be saved to the location where Codist is obtaining the strange initial colors. If those are hard-coded, I don't understand why Codist doesn't always load the color/style settings when it starts up. But then, I don't know anything about the troubles if interacting with Microsoft's horrible mess of extensions and VS Fonts & Colors -- but I can imagine, based on the horrible mess of the Source Code Control Plugin interface (which I've suffered through to allow VS2022 to use our old 32bit SCCP.)

Of course, this may be fixed in v7.8 (which I have not yet tried).

@wmjordan
Copy link
Owner

Exporting colors is not possible at this time.
I can not find out a way to enumerate all fonts and colors defined in the VS, like the Fonts and Colors section in the Options page.

I had reproduced the "Codist is NOT performing any syntax coloring initially" problem and fixed it in version 7.8. Please give it a try.

@wmjordan
Copy link
Owner

I read your post in the Development Community.

If exporting only styles used in code editor is your goal, the implementation is much easier and viable.
The current implementation only export styles that defined in Codist, and you need to export not only those customized via Codist, but also those predefined VS.
I have an idea to enumerate all classification types and their styles.
I will not export it as the VS settings format, but in Codist format, so we can import all styles including background, font and other settings.

Maybe it will be possible in the future.

@wmjordan wmjordan added enhancement Highlight Syntax highlight labels Feb 23, 2024
@nurbles
Copy link
Author

nurbles commented Feb 26, 2024

Thanks for considering the idea! I really cannot ask for more than that -- any actual implementation is a hope & dream, depending purely on your interest and kindness in sharing all your hard work! Thanks again!

BTW, v7.8 appears to be working great with VS2022, so good job on the fix for the initial style settings (and more)!

@wmjordan
Copy link
Owner

Hi, there is a new beta version which allows you export all syntax highlight settings (including those defined in VS themes but not in Codist). I have not yet fully tested this version. Please drop a few lines if something goes wrong.

To export all styles, press Shift key while hitting the Export button.

Codist.zip

@nurbles
Copy link
Author

nurbles commented Aug 23, 2024 via email

@wmjordan wmjordan self-assigned this Aug 24, 2024
@wmjordan
Copy link
Owner

Perhaps my web connection got broken and the upload was removed.
Please try this.
Codist.zip

@nurbles
Copy link
Author

nurbles commented Aug 26, 2024 via email

@wmjordan
Copy link
Owner

There's no *.styles file in your comment.

Please show those "background color values that were present in the older file, but not in the new one" with a few lines.
I will check it later when I have time.

@nurbles
Copy link
Author

nurbles commented Aug 26, 2024 via email

@wmjordan
Copy link
Owner

wmjordan commented Aug 27, 2024

No, there is no attachment.
Perhaps you can't do so from email, except replying from Github.

@nurbles
Copy link
Author

nurbles commented Aug 27, 2024

OK, hopefully the 3rd time's the charm... (smile)
Codist-Test.zip

PS: It looks like the attachment was included, but as BASE64 text (visible when the elipsis is clicked). So it would require additional knowledge, software and effort to manually extract it. It would be better if github bounced the message with a note about attechments not being supported in email replies. Oh well, I think you will finally be able to see the files.

Once again, I am at your service for testing as needed. Thank you for the opportunity to contribute in some small way.

wmjordan added a commit that referenced this issue Aug 29, 2024
@wmjordan
Copy link
Owner

Codist.zip

Use this release please. This should work as expected.

@nurbles
Copy link
Author

nurbles commented Aug 29, 2024 via email

@wmjordan wmjordan mentioned this issue Aug 30, 2024
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Highlight Syntax highlight
Projects
None yet
Development

No branches or pull requests

2 participants