Jump to content

Tidy Region within Region problem


Recommended Posts

#Region - 1
#Region - 2
#EndRegion - 2
#EndRegion - 1

When I Tidy the above code it changes to the below code.

#Region - 1
#Region - 2
#EndRegion - 2
#EndRegion - 2
Well, #Region tags are not meant to be nested at all. It is not doing any math with your numbers, just substituting the string. Everything after "#Region" is considered a comment, and Tidy is just making the comments match. Similar to to putting the function name after EndFunc. Try this to see the effect:
#Region One

#Region Two

#EndRegion Two

#Region Three

#EndRegion Three

#EndRegion One

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Yeah I thought it wasn't supposed to be nested but I also thought maybe noone had tried it before because I searched the forums and noone mentioned it.

Thats also why the topic description is "Bug?" because I was hoping nesting could be implemented if possible.

Link to comment
Share on other sites

Yeah I thought it wasn't supposed to be nested but I also thought maybe noone had tried it before because I searched the forums and noone mentioned it.

Thats also why the topic description is "Bug?" because I was hoping nesting could be implemented if possible.

It's not a bug, because it works as intended. But you could put it in as a Feature Request to Jos via Bug Trac.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

  • Developers

I have never considered the #region - #endRegion nesting when copying the Comment from the #region statement.

I will follow it up when time permits and report back in the feature request.

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

  • Developers

Uploaded Tidy v 2.0.23.16 to the Beta area, which now supports nested #region statements for its comment copy options.

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

I have never considered the #region - #endRegion nesting when copying the Comment

Exactly why I decided to make the topic :)

Uploaded Tidy v 2.0.23.16 to the Beta area, which now supports nested #region statements for its comment copy options.

Thank you :P, I'll check it out

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