{"action":"created","issue":{"url":"https://api.github.com/repos/scottclowe/matlab-schemer/issues/21","repository_url":"https://api.github.com/repos/scottclowe/matlab-schemer","labels_url":"https://api.github.com/repos/scottclowe/matlab-schemer/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/scottclowe/matlab-schemer/issues/21/comments","events_url":"https://api.github.com/repos/scottclowe/matlab-schemer/issues/21/events","html_url":"https://github.com/scottclowe/matlab-schemer/issues/21","id":319021011,"number":21,"title":"R2016a and later: \"Validation sections\" syntax highlighting ?","user":{"login":"Brad-Stiritz","id":3894205,"avatar_url":"https://avatars2.githubusercontent.com/u/3894205?v=4","gravatar_id":"","url":"https://api.github.com/users/Brad-Stiritz","html_url":"https://github.com/Brad-Stiritz","followers_url":"https://api.github.com/users/Brad-Stiritz/followers","following_url":"https://api.github.com/users/Brad-Stiritz/following{/other_user}","gists_url":"https://api.github.com/users/Brad-Stiritz/gists{/gist_id}","starred_url":"https://api.github.com/users/Brad-Stiritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brad-Stiritz/subscriptions","organizations_url":"https://api.github.com/users/Brad-Stiritz/orgs","repos_url":"https://api.github.com/users/Brad-Stiritz/repos","events_url":"https://api.github.com/users/Brad-Stiritz/events{/privacy}","received_events_url":"https://api.github.com/users/Brad-Stiritz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T20:17:26Z","updated_at":"2018-05-03T18:11:38Z","closed_at":null,"author_association":"NONE","body":"Hi Scott,\r\n\r\nThank 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\":\r\n\r\n```Preferences / Colors / MATLAB syntax highlighting colors / Validation sections```\r\n\r\nWithin classdef files, this controls the color of per-property class type declarations, as explained [here](https://www.mathworks.com/help/matlab/matlab_oop/validate-property-values.html). I believe property validation was introduced into Matlab in R2016a.\r\n\r\nPlease let me know your thoughts on adding support for this, within the schemer *.prf files?\r\n\r\nThanks,\r\nBrad"},"comment":{"url":"https://api.github.com/repos/scottclowe/matlab-schemer/issues/comments/386387170","html_url":"https://github.com/scottclowe/matlab-schemer/issues/21#issuecomment-386387170","issue_url":"https://api.github.com/repos/scottclowe/matlab-schemer/issues/21","id":386387170,"user":{"login":"scottclowe","id":2891791,"avatar_url":"https://avatars1.githubusercontent.com/u/2891791?v=4","gravatar_id":"","url":"https://api.github.com/users/scottclowe","html_url":"https://github.com/scottclowe","followers_url":"https://api.github.com/users/scottclowe/followers","following_url":"https://api.github.com/users/scottclowe/following{/other_user}","gists_url":"https://api.github.com/users/scottclowe/gists{/gist_id}","starred_url":"https://api.github.com/users/scottclowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottclowe/subscriptions","organizations_url":"https://api.github.com/users/scottclowe/orgs","repos_url":"https://api.github.com/users/scottclowe/repos","events_url":"https://api.github.com/users/scottclowe/events{/privacy}","received_events_url":"https://api.github.com/users/scottclowe/received_events","type":"User","site_admin":false},"created_at":"2018-05-03T18:11:38Z","updated_at":"2018-05-03T18:11:38Z","author_association":"OWNER","body":"Hi Brad,\r\n\r\nThanks 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.)\r\n\r\nI 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.\r\n\r\nAs 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."}}
{"actor":{"display_login":"scottclowe"}}