On 2015-09-06 20:41:18 -0500, Robby Findler wrote:
> Some suggestions about the method you linked to:
>
> - Don't create the brush inside on-paint (use the brush-list or stick
> it in a field).
>
> - Don't assume that the width of "a" is the same as the other widths
> (it isn't in common racket c
As far as I can tell, to get the highlighting to start in the position
after (so to highlight "[x (foo bar)]" when the insertion point is
before that quoted "]"), then you'd need to change the method I
pointed you to. I guess it would make sense to add an overridable
method that returns #f or a pos
With some difficulty, as far as I can make out :) The code overrides
on-paint and draws its own cursor. The insertion point does not appear to
be changed; the cursor display is just changed from a line between char@pos
and char@pos+1 to a box covering char@pos+1
https://github.com/takikawa/drracke
The highlighting you're interested in changing is the (by default)
grey highlighting that moves around when you change the insertion
point (when you use the arrow keys, say), right?
If so, I think the code you're looking for is the match-parens private
method in framework/private/color. You can se
Let's say I have the following:
(let ([x (foo bar)] ... )
In the regular drracket editor, when I move the cursor between the ) and ]
it highlights (foo bar). In the vim emulator, the cursor has been replaced
by a block that highlights a character, rather than a line just before it.
So the same cu
I am not quite following what you want to do. Can you give an example
interaction?
Robby
On Sunday, September 6, 2015, Martin DeMello
wrote:
> I'm trying to override the automatic backward-sexp highlighting in
> drracket to highlight the sexp based on the ) after the cursor rather than
> before
I'm trying to override the automatic backward-sexp highlighting in drracket
to highlight the sexp based on the ) after the cursor rather than before it
[https://github.com/takikawa/drracket-vim-tool/issues/13]. Is this
possible? I tried overriding flash-backward-sexp but it didn't seem to have
any
7 matches
Mail list logo