[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gambas script capabilities


Le 10/10/2026 à 15:34, olivier.cruilles a écrit :
Hi,
I found the problem.
1. I load the orignal script (script .gbs generated by gbs3 --convert- project <path to gambas projet>) (size 822 Bytes) in a TextEditor 2. I enable the TextEditor1.Highlight = "gambas" and that change the structure of the original text in the TextEditor. It's clearly mentioned in the documentation of Gambas (https://gambaswiki.org/wiki/comp/ gb.form.editor/texteditor/highlight) 3. I save the Text of the TextEditor using File.Save() or TextEdit1.Save() but the highlighted text is saved (size 849 Bytes), and that break the script.

If I do the same procedure without enabling the TextEditor.Highlight, the script saved is the same as the original.

The question now is, how get the raw text from the TextEditor and not the Highlighted text (modified text), and it is possible ?

Thank you all with your help

Olivier

Olivier Cruilles


Highlighting and reformatting should not create syntax errors in the code.

Please provide the file before the formatting and after.

--
Benoît Minisini.


Follow-Ups:
Re: Gambas script capabilities"olivier.cruilles" <olivier.cruilles@xxxxxxxx>
References:
Gambas script capabilitiesOlivier Cruilles <olivier.cruilles@xxxxxxxx>
Re: Gambas script capabilitiesBrian G <brian@xxxxxxxxxxxxxxxx>
Re: Gambas script capabilities"olivier.cruilles" <olivier.cruilles@xxxxxxxx>
Re: Gambas script capabilitiesBruce Steers <bsteers4@xxxxxxxxx>
Re: Gambas script capabilities"olivier.cruilles" <olivier.cruilles@xxxxxxxx>