Warning using TextEditor as a text editor. (gambas highlight)

Ask about the individual Gambas components here.
Post Reply
User avatar
BruceSteers
Posts: 361
Joined: Thursday 23rd July 2020 5:20pm

Warning using TextEditor as a text editor. (gambas highlight)

Post by BruceSteers » Thursday 22nd October 2020 1:06pm

I have a Text Editor i've made using the TextEditor control an di was using it yesterday on a bash script of mine.
A 700+ line bash script.

I was looking at the different "Highlighting" options it has as it does not have a shell one so i had to find the best one.

Before i saved my script i had not noticed something...

Setting the Highlight option to "gambas" on the TextEditor actually re-formats the entire text to suit gambas.
And it really does not suit bash scriptiing.

I just spent 4-5 hours repairing the script reformatting it to be correct and looking for tiny little erros cause by gambas moving text around.
bloody nightmare :(

Attached are 2 bash scripts.
One is a working script.
The other is just how messed up it gets just by choosing the gambas highlighting style on a TextEditor.

PS. selecting any other highlight style does not change the text oinly gambas style.

So be warned.
Bruce
Attachments
Gambas3-Compile-and-Install-messed-up.zip
(12.99 KiB) Downloaded 33 times
Wishing well
Bruce

If at first you don't succeed , try it differently.

User avatar
BruceSteers
Posts: 361
Joined: Thursday 23rd July 2020 5:20pm

Re: Warning using TextEditor as a text editor. (gambas highlight)

Post by BruceSteers » Thursday 22nd October 2020 9:52pm

Benot (bless him) has just fixed this :)

So only relevant on previous Gambas versions to the latest commit now.
Wishing well
Bruce

If at first you don't succeed , try it differently.

Post Reply