Author |
Topic |
|
meteorfall
New Member
4 Posts |
Posted - Oct 12 2005 : 02:20:50 AM
|
some suggestion: 1.In the setting Option,the function "Enhance Syntax Coloring" can not set the custom coler for the property of the variables.It must be better if the software can specify the variables and its property,bying using different colors. 2.If the class variable's name is the same as its class,I think it can not distinguish the variable and the class.
Thank you. |
|
feline
Whole Tomato Software
United Kingdom
19009 Posts |
Posted - Oct 12 2005 : 2:24:49 PM
|
1. i do not understand what you mean. is this something to do with accessors in C#?
2. when the same name is used for more than one thing VA does its best. the problem is that the colouring code has to run very quickly, so that it can keep up with the user scrolling through the code, so it is not able to do a lot of complex lookup's. |
zen is the art of being at one with the two'ness |
|
|
meteorfall
New Member
4 Posts |
Posted - Oct 13 2005 : 01:15:09 AM
|
Thanks for your reply. I do want to use it in c# . I think it may be better to run in c++ then c#. I also found that the coloring code function always take mistakes when coloring. For example,the same code flagment in two place may colored by different colors.It seems the coloring code has not perfect stability.
e.g: theNew.GetDAO().Insert() ;
but anthor place : theNew.GetDAO().Insert();
the pink suit the method code,it's right,but the maroon should be the class,structure code,as my setting.
|
|
|
feline
Whole Tomato Software
United Kingdom
19009 Posts |
Posted - Oct 13 2005 : 2:58:01 PM
|
your original point 1, given this snippet of C#
public SortOrder Order
{
set { OrderOfSort = value; }
get { return OrderOfSort; }
}
do you mean you want to see all instances of the word "Order" in a custom colour? if so this might be tricky, but i can ask support about this. however i am not sure how this idea would apply to C++. i am aware of a Microsoft specific method of doing this in C++, but i don't know how widely it is used.
the colouring of:
theNew.GetDAO().Insert();
does indeed look like a bug. how easy is this to reproduce? can you produce a small piece of code that i can paste into the IDE and reproduce this? |
zen is the art of being at one with the two'ness |
|
|
meteorfall
New Member
4 Posts |
Posted - Oct 13 2005 : 11:53:38 PM
|
To the one: yes,I wanna such effect.My friend use ReSharp can do it,but ReSharp are too slow.
the second: the code flagment : public bool JTZJ(ref string errmsg) { CWT_JTZJ last = (CWT_JTZJ)this.BusinessEntity;
Hashtable hashtable=new Hashtable(); hashtable.Add("userName",last.CurrentUser); hashtable.Add("theState",null); IBatisNet.DataMapper.Mapper.Instance().QueryForList("JTZJ",hashtable);
if((bool)(hashtable["theState"])!=false) { return true; } return false;
}
(ps:in my IDE,"hashtable.add()" are not the same color.) |
|
|
feline
Whole Tomato Software
United Kingdom
19009 Posts |
Posted - Oct 14 2005 : 2:13:46 PM
|
i will ask support about extra colouring for C# and see what they say. VA's colouring code has very little information about context, which helps to keep it fast, but does mean it cannot always do everything people would like it to.
pasting the code snippet into a C# console app, using VS 2003 with VA 1426 i am seeing this:
i presume this is different to you. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|