Jump to content

[SOLVED] Tidy seems to ignore tidy.ini settings for tab


Recommended Posts

AutoIt 3.3.14.5 with Scite 4.2.0. In Scite I like to set tab and indent to 2 and have tabchar=2 in tidy.ini.

When I run tidy on my au3 script with ctrl+T, I receive the following message regardless of the values set in tidy.ini. The message can be eliminated by setting tabsize to 4 in Scite, which I don't want..

>Running Tidy (19.1127.1402.0)  from:C:\Program Files (x86)\AutoIt3\SciTE\tidy
---- there is a discrepancy between the ScITE and Tidy settings: -----
>>>           Tidy.ini: tabsize= 4
      SciTE properties: tabsize= 2
---- This could lead to inline comments be wrongly positioned after Tidying the sourcecode

Also have found that changes to tab settings in Scite config Ctrl+1 do not appear to take effect until you restart the app.

Edited by pseakins
Wording and Title. Solved.

Phil Seakins

Link to comment
Share on other sites

  • Developers

It works fine for me when I test with these settings in UserProperties:

tabsize=2
indent.size=2
use.tabs=1

.. and this in Tidy.ini:

[ProgramSettings]
tabsize=2

.. and it does indeed require a restart to take effect.
I think this is an SciTE thing as in SciTE itself you need to press convert for it to take effect.
I do see that Tidy defaults to tabsize=4, which maybe should be to default to the current SciTE setting!

So, when you make these changes you still get the Tidy warning?

Jos

 

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Fixed. My Tidy.ini did not have the "[ProgramSettings]" section name so all settings were being ignored leaving Tidy to default to tabsize=4.

After adding the header and assigning the required values I no longer get the Tidy warning. As you say, maybe Tidy should default to the current Scite setting.

Thanks for your help and guidance Jos.

Phil

Phil Seakins

Link to comment
Share on other sites

  • Developers

Ah... that explains it.
I have made a small change to Tidy to take the SciTE tabsize when not provided in Tidy.Ini or through the directive in stead of defaulting to 4.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...