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

R2016a and later: "Validation sections" syntax highlighting ? #21

Open
Brad-Stiritz opened this issue Apr 30, 2018 · 1 comment
Open

Comments

@Brad-Stiritz
Copy link

Brad-Stiritz commented Apr 30, 2018

Hi Scott,

Thank you so much for implementing and sharing this repository, it's very appreciated! I'm working in R2018a, and having trouble finding the *.prf color setting for Matlab's so-called "Validation sections":

Preferences / Colors / MATLAB syntax highlighting colors / Validation sections

Within classdef files, this controls the color of per-property class type declarations, as explained here. I believe property validation was introduced into Matlab in R2016a.

Please let me know your thoughts on adding support for this, within the schemer *.prf files?

Thanks,
Brad

@scottclowe
Copy link
Owner

Hi Brad,

Thanks for pointing this out. I wasn't aware this setting had been added to MATLAB, and hadn't noticed the new colour setting existed. (I don't update to new versions of MATLAB when they release due to the poor backward compatibility in MATLAB which has previously broken my code without warning. However, I do check the download new versions just to see if there are any new colour settings introduced.)

I will add this parameter to the schemer export and import functions, and then issue updates to the colour schemes which include a definition for this.

As a note for you and for my own reference when implementing this: The colour for "Validation sections" is set by Colors_M_TypeSection in the matlab.prf file, and has a default value of Colors_M_TypeSection=C-6270419 (which corresponds to a mid-dark brown, hex A0522D, RGB=(160, 82, 45)). It affects text and thus should probably default to the same colour as the main text body.

scottclowe added a commit that referenced this issue Aug 16, 2020
This provides support for the Validation Sections colour setting.

Closes #21.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants