Control+I in IDE messes up alignment of semicolons in inline Javascript

Found an issue in SpiderBasic ? Please report it here !
Quin
Posts: 24
Joined: Wed Nov 08, 2023 4:38 pm

Control+I in IDE messes up alignment of semicolons in inline Javascript

Post by Quin »

If I have semicolons at the end of a bunch of javascript lines, like this, selecting all the code and pressing control+I aligns the semicolons like so:

Code: Select all

    EnableJS
    synth = window.speechSynthesis;
    aria = document.createElement("div");
    aria.id = "speech"                  ;
    aria.style = "position: absolute; left: 0px; top: -400px";
    aria.setAttribute("aria-live", "assertive")              ;
    document.body.appendChild(aria)                          ;
    DisableJS
Is this intended? I think not; probably a side effect of comments being a semicolon.
Quin
Posts: 24
Joined: Wed Nov 08, 2023 4:38 pm

Re: Control+I in IDE messes up alignment of semicolons in inline Javascript

Post by Quin »

I just tested, and this seems limited to EnableJS/DisableJS blocks; using the ! before every line doesn't do it.
Post Reply