Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Syntax coloring for [[attributes]]
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sharyex
New Member

2 Posts

Posted - Jan 02 2018 :  05:39:17 AM  Show Profile  Reply with Quote
Giving that attributes are starting to become more and more common, any chance we can get a customizable syntax color setting for them?

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 02 2018 :  08:46:19 AM  Show Profile  Reply with Quote
I assume you are thinking of C++ attributes. Are you just thinking of colouring all attributes in a single colour, treating them like strings, or another simple type, or are you thinking in terms of something more complex?

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 02 2018 :  09:52:12 AM  Show Profile  Reply with Quote
Testing in C++, VS2017, if you change the colour setting:

IDE tools menu -> Options -> Environment -> Fonts and Colors -> Display items = Identifier

this will change the colour of the attribute text in the editor.

zen is the art of being at one with the two'ness
Go to Top of Page

sharyex
New Member

2 Posts

Posted - Jan 04 2018 :  09:35:34 AM  Show Profile  Reply with Quote
The problem with the current IDE settings is that they don't change the bracket coloring as well (the "[[" and "]]" characters), or at least I haven't found a way to do it without impacting other syntaxes.
What I'm looking for is to have attributes customizable completely and independently from anything else, e.g. have "[[maybe_unused]]" and "[[deprecated]]" coloured dark blue, with nothing else having the same color. It's ok to have all the attributes share the same colour.

The idea is to give them a non-intrusive color to remove the visual noise in documents where they are used a lot.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jan 05 2018 :  1:28:22 PM  Show Profile  Reply with Quote
This makes sense, I have put in a feature request to see what our developers make of this:

case=113563

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000