[Gambas-user] TextHighlighter["gambas"].CanRewrite = False
Bruce Steers
bsteers4 at gmail.com
Tue Dec 12 16:08:10 CET 2023
this was the previous conversation where i was livid because i had to spend
4.5 hours fixing a darn script..... :-\
https://lists.gambas-basic.org/pipermail/user/2020-October/070368.html
Respects
BruceS
On Tue, 12 Dec 2023 at 14:43, Benoît Minisini <
benoit.minisini at gambas-basic.org> wrote:
> Le 12/12/2023 à 15:33, Bruce Steers a écrit :
> >
> > I cannot seem to disable CanRewrite in a texteditor :(
> >
> > I try this....
> >
> > TextHighlighter["gambas"].CanRewrite = False
> > $hEditor.Highlight = "gambas"
> >
> > but the text gets re-written still?
> >
> > The editor has a highlight selector to try different highlights on text
> > files that might have not been recognized.
> > If gambas is selected I only want to enable CanRewrite if the file is
> > known to be gambas code.
> >
> > I also only want to disable rewrite for gambas highlight in the loaded
> > editor not everywhere and TextHighlighter["gambas"].CanRewrite = False
> > seems kinda global not local to current editor.
> >
> > I guess i am doing it wrong :(
> >
> > any advice ?
> >
> > Thanks in advance
> > BruceS
> >
>
> The CanRewrite property is not static, and the TextEditor always set it
> to TRUE before doing its highlight.
>
> Regards,
>
> --
> Benoît Minisini.
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231212/32840a73/attachment.htm>
More information about the User
mailing list