Jump to content

Is it possible to remove empty lines automaticly?


Recommended Posts

Hello my question is simple :D

Can you remove the blank lines in a script automaticly by using an option in AutoIt - Scite?

Run("Calc")

Sleep(3000)
                                                     ; <--- This is the blank line i mean :D
WinActivate("Calculator")

sleep(3000)

Send("5") 

Send("{+}")

Send("8")

Send("{=}")

When I make my script I usually makes these anoying blank lines but is it possible to remove them by automatic with Scite?

Regards

Link to comment
Share on other sites

Hi.

Hello my question is simple :D

Can you remove the blank lines in a script automaticly by using an option in AutoIt - Scite?

Open SciTE.EXE, "?", SciTE Help.

Search the help file for "tidy"

You will find a section covering the settings that can be made in TIDY.INI.

It depends on the settings there how tidy.exe will handle empty lines:

<snip>
Remove_Empty_Lines=0
*** 1=Show Tidy Errors in Console 9=Debug Output
<snap>

Regards, Rudi.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Link to comment
Share on other sites

Create the file if it is not there: C:\Program Files\AutoIt3\SciTE\Tidy\Tidy.ini

Contents of the ini file should be updated this way:

[ProgramSettings]

Remove_Empty_Lines=1

The following is all I have in my current Tidy.ini file. It belongs in [installation Dir]\SciTE\Tidy\Tidy.ini -

[ProgramSettings]
tabchar=0
proper=1
endfunc_comment=1
Gen_Doc=0
Gen_Doc_Show=0
KeepNVersions=1
Remove_Empty_Lines=1
ShowConsoleInfo=1
Edited by Squirrely1

Das Häschen benutzt Radar

Link to comment
Share on other sites

Create the file if it is not there: C:\Program Files\AutoIt3\SciTE\Tidy\Tidy.ini

Contents of the ini file should be updated this way:

[ProgramSettings]

Remove_Empty_Lines=1

I have this .ini file:

TidyV2_Example.ini

in the folder

C:\Programmer\AutoIt3\SciTE\Tidy

I there I've tryid to change the

Remove_Empty_Lines=0 to Remove_Empty_Lines=1, but it won't work should i create my own tidy.ini and then only whrite in Remove_Empty_Lines=1 in there?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...