>> Hi guys >> >> I think that we should really change the following behavior. >> If I have an instance variable abc >> >> when I type ab is should not be colored in red first then when I type c get >> black >> >> It should tell me that ab is correct and only get red when I type abx >> >> I got this behavior for the kid book. >> >> Does anybody have an idea how we can fix that? > > Well it mostly depends on the parser. But the behavior you describe is pretty > common in other languages. To be precise, you actually have invalid code, but > you are on the way to make it valid.
Yes but you have a difference between code that may be correct once you finish and one that is totally incorrect now. For the botsinc book I did it and you were always sure that you are going in the right direction. > For me a solution would be a timer/delay when the syntax coloring hits in. No for me the solution is feedback that tells me continue you are on the way or stop you got it wrong now. I already did that in the past. > So while you are typing it stays black, but after some 200ms pause it will > give you feedback (also when you press any of: ' ,;:[]|(){}").