with an experimental implementation. Just load the slice, enable the setting:RubAbstractTextArea highlightMessageSend: true. to see which part of the code belongs to which method: TextModel new beForCode; aboutToStyle:true;behavior: MorphTreeMorph;text:(MorphTreeMorph>>#drawLinesOn:) sourceCode;openWithSpec. |
Hi Nicolai
Good idea! I like it and it works well. I now wonder if it should not be enabled as default. For that, maybe the highlight should be styled a bit (e.g. lighter colors) to do not perturb the user when not really needed but still easy to see. Another idea would be to show it only if you press a key while mouse over (e.g shift). thanks
|
2016-08-11 13:57 GMT+02:00 Christophe Demarey <[hidden email]>:
Thanks for your feedback. Yes, using shift is a good idea
|
In reply to this post by Nicolai Hess-3-2
That's nice 2016-08-10 16:48 GMT+02:00 Nicolai Hess <[hidden email]>:
|
In reply to this post by demarey
2016-08-11 13:57 GMT+02:00 Christophe Demarey <[hidden email]>:
I remember another nice idea to underline keyword messages with different colors. |
In reply to this post by Nicolai Hess-3-2
2016-08-10 16:48 GMT+02:00 Nicolai Hess <[hidden email]>:
Attached a screenshot. The mouse cursor is over the #submorphsDo: message, the highlighter highlights the message and all that is part of its arguments (the big block). screenshot.png (111K) Download Attachment |
In reply to this post by Denis Kudriashov
2016-08-11 21:23 GMT+02:00 Denis Kudriashov <[hidden email]>:
Another idea, instead of highlighting the whole message with arguments, only underline the keywords. This is nice too, but the code to do so (using rubrics text segements) is much more complex, because I had to use multiple text segments (one per keyword part). Doing the underline for all keyword message is easier with using ordinary text style attributes. And let the syntax highligher set the proper attributes. I already did this once, but not for underlining the keywords but for emphase variable assignments. |
2016-08-11 21:54 GMT+02:00 Nicolai Hess <[hidden email]>:
This is the changed styler to underline assignments. This makes it easer to spot places in long methods, where variables are changed. (on the other hand, of course, methods shouldn't be that big :) ) screenshot_assignments.png (155K) Download Attachment |
2016-08-11 22:19 GMT+02:00 Nicolai Hess <[hidden email]>:
Let's integrate it. It looks so good |
2016-08-11 23:11 GMT+02:00 Denis Kudriashov <[hidden email]>:
This is not part of the change, just an experiment. I need to change the style tables for this, and before we integrate that change, I would like to make it configurable. |
In reply to this post by Nicolai Hess-3-2
Hi nicolai It is nice. I would not put the border in black. What is needed to integrate it. Stef Le 10/8/16 à 16:48, Nicolai Hess a
écrit :
|
2016-08-12 19:09 GMT+02:00 stepharo <[hidden email]>:
I put the issue to "Resolved ", so the monkey can check. The background color is the same as for "secondary selection" and the border color is the same "muchDarker". Of course, we can integrate it and change the color later.
|
I like the idea to use shift to activate it. Le 12/8/16 à 19:19, Nicolai Hess a
écrit :
|
2016-08-12 19:31 GMT+02:00 stepharo <[hidden email]>:
Ok, I 'll can change it.
|
Free forum by Nabble | Edit this page |