[Gambas-user] bizarre invisible chars
bsteers4 at gmail.com
Sat Jan 7 00:19:23 CET 2023
it's possible I copied the code from a gambasone page although i cannot see
the script there.
I just discovered something wierd.
If i copy-paste text from a page that has some gb code blocks in it like
I find if i double click code text or right click it and press "select all"
then i copy the code and paste it into gambas or my text editor and it's
But Drag select the text by pressing mouse.left at the top and scrolling
down then copy and i get text pasted that looks okay in pluma and my text
editor but it has hidden chars that makes the text invalid.
in the gambas ide the text is all red and underscored :-\
PS. i tried all the advanced paste ide options
On Fri, 6 Jan 2023 at 22:35, Bruce Steers <bsteers4 at gmail.com> wrote:
> Hi all.
> Attached is a script file that has me very puzzled.
> It's a thing i've seen a bit of recently using my gambas text editor, no
> idea the cause.
> the attached script has some lines that appear to be just some spaces but
> they are not.
> I have tried all sorts to clear them, Trim does not trim them.
> I have no idea how the file got this way , i think i may have copied the
> text from gambas ide or my script editor, i suspect it could a
> gb.form.editor issue.
> I tried this on it...
> For c As Integer = 0 To tEditor.Count - 1
> Dim iLen As Integer = tEditor[c].Length
> Dim sLine As String = LTrim(tEditor[c].Text)
> tEditor[c].Text = If(sLine And (iLen <> sLine.Len), String(iLen -
> sLine.Len, " ") & sLine, "")
> that should trim the pre-spaces and replace them but it doesn't, and
> looking at the debugger the spaces do not get trimmed, then i get a "bad
> argument" error.
> Most puzzling.
> In the attached file if you use gambas TextEditor with shell highlighting
> the offending lines are all in the "string" colour.
> If you delete the spaces at the start of the line manually and re-input
> them then the highlighter shows correct.
> Even using Quote() does not show anything , just spaces
> PS. the script fails to run until all offending chars are removed.
> Wishing well
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User