Raul Miller wrote: > On Mon, Oct 6, 2008 at 4:11 PM, Sherlock, Ric <[EMAIL PROTECTED]> wrote: >> As for "where does it end?", given that this would be user-configurable >> (exactly as it is >> currently user-configurable to show verbs vs nouns vs adverbs in a different >> colour), >> you can decide yourself where it ends. > > It would be interesting if the session manager code which colorizes > text within the session were itself written in J. > > However, since this expression apparently colorizes every displayed line and > updates the display every time a character is typed, there might be efficiency > constraints.
This is quite possible. I did some recent experiments on this, and found that efficiency is not a concern. Consider that grid is more complex than a session window, and this is written in J. > Also, the current mechanism seems to be based solely on characteristics of > the raw text. For example, if you configure your system such that adverbs > display in green, and type example=:/ then the word 'example' will not be > displayed in green. So this proposed change would be a major departure from > how the session manager currently works. This would certainly be a major departure. Right now, "example" would be colored as a name, not as a type. Another problem is that the J session windows are simply plain text, and nothing else. For example, the windows do not know that some block of text just happens to be the representation of a numeric matrix. Also, since the windows can be edited at will, that block of text might be changed so that it could no longer represent a numeric matrix. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
