Pasting into Vb script editor ruins text formatting

Hi,
I came across this weird bug where copying simple vb script methods from the vbscript help file reformats the text in the editor causing the scripts to malfunction.

Here is the script from the help file and what it should be to work.
WorkSessionModelNames

Dim arrNames, strName

arrNames = Rhino.WorkSessionModelNames

If IsArray(arrNames) Then

For Each strName In arrNames

Rhino.Print strName

Next

End If

But then notice how it ruins the formatting on pasting into the editor causing errors
Seems that pasting takes out spaces merging words together

RM

system-info2.txt (2.6 KB)

Hi @3dsynergy,

I’ve see that too. Unfortunately the code editor used by the legacy script editor is from a 3rd party. so there isn’t anything we can do about it.

– Dale

Hi @dale

Fair enough since Vbscripts are being phased out.
Thanks for confirming, because I was afraid it was yet another glitch with my win 11.
RM