To illustrate the issue I have created a small script file (The line numbers are added for display purposes) 1 For $ix = 1 To 10 Step 1
2 If $ix = 5 Then
3 ConsoleWrite("five" & @CRLF)
4 Else
5 ConsoleWrite($ix & @CRLF)
6 Else
7 EndIf
8 ;### Tidy Error: "endselect" is likely missing it's opening statement. next line creates a negative tablevel.
9 ;### Tidy Error -> "endselect" is closing previous "for" on line 1
10 EndSelect
11 ;### Tidy Error: "next" is likely missing it's opening statement. next line creates a negative tablevel.
12 Next
The error messages displayed after Ctrl+T are: >"C:\Program Files (x86)\AutoIt3\SciTE\tidy\tidy.exe" "D:\Projecten\AutoIt_Debugger\Test\_experiment.au3"
Tidy AutoIt3 v15.725.1310.0 Copyright (c) Jos van der Zande July 25,2015
"D:\Projecten\AutoIt_Debugger\Test\_experiment.au3"(9) : ### Tidy Error: "endselect" is likely missing it's opening statement. next line creates a negative tablevel.
"D:\Projecten\AutoIt_Debugger\Test\_experiment.au3"(10) : ### Tidy Error -> "endselect" is closing previous "for" on line 1
"D:\Projecten\AutoIt_Debugger\Test\_experiment.au3"(12) : ### Tidy Error: "next" is likely missing it's opening statement. next line creates a negative tablevel.
!> there were 3 error(s) encountered. look in your source for:### Tidy Error:
+> Tidy AutoIt3 finished and has no updates to make!
>Exit code: 3 Time: 0.4565The errors are on lines 8,9 and 11 and not the reported 9,10 and 12.