[Gambas-user] Strange "new" in writing code in the IDE Editor.

vuott at tutanota.com vuott at tutanota.com
Wed Nov 1 20:12:55 CET 2023


Ok, now it works.




1 nov 2023, 18:14 da benoit.minisini at gambas-basic.org:

> Le 01/11/2023 à 11:59, Bruce Steers a écrit :
>
>>
>>
>> On Wed, 1 Nov 2023 at 10:57, Bruce Steers <bsteers4 at gmail.com <mailto:bsteers4 at gmail.com>> wrote:
>>
>>
>>
>>  On Wed, 1 Nov 2023 at 10:47, vuott--- via User
>>  <user at lists.gambas-basic.org <mailto:user at lists.gambas-basic.org>>
>>  wrote:
>>
>>  I would like to add that previously, if I typed a keyword in
>>  lowercase letters, then automatically the IDE would turn the
>>  first letter to uppercase.
>>  Now, however, everything remains in lowercase letters.
>>
>>
>>  yes because CanReWrite is not set.
>>  CanReWrite is the setting that allows the code to be modified or not.
>>
>>  i've submitted a merge request...
>>  https://gitlab.com/gambas/gambas/-/merge_requests/314
>>  <https://gitlab.com/gambas/gambas/-/merge_requests/314>
>>
>>  the problem is in CDocument.class of TextEditor component
>>  these 2 lines  (961 and 963)
>>    TextHighlighter.CanRewrite = True '_Mode.Name
>>
>>    If Not $bHighlightAll And If TextHighlighter.CanRewrite Then
>>
>>
>>  it should be this now...
>>    $hHighlight.CanRewrite = True '_Mode.Name
>>
>>  If Not $bHighlightAll And If $hHighlight.CanRewrite Then
>>
>>  BruceS
>>
>>
>> i guess the second line does not really need "And If $hHighlight.CanRewrite"
>> because the line before it sets $hHighlight.CanRewrite to True
>>
>> BruceS
>>
>
> Sorry, Mea culpa, I forgot to push a commit yesterday. :-/
>
> -- 
> 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/20231101/eac3d019/attachment.htm>


More information about the User mailing list