Sign in to follow this  
Followers 0
nikink

#region not explained anywhere?

8 posts in this topic

Just as the title says, I've seen #region appear in some scripts but it isn't mentioned in the help files anywhere. What does it do? What is it for? Why is it not mentioned?

Just curious...

B-)

Share this post


Link to post
Share on other sites



...#region ... isn't mentioned in the help files anywhere...

Check the SciTE help file:

We also added a special folding keyword #region-#endregion. Any text behind these keywords on the line are considered comments.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Just as the title says, I've seen #region appear in some scripts but it isn't mentioned in the help files anywhere. What does it do? What is it for? Why is it not mentioned?

Just curious...

B-)

#Region mySectionOfCode

...

...

#EndRegion

These tags help you when coding with SciTe. You can fold the code that is outside of functions, so you don't have to scroll up and down through your editor so much so. If you aren't using SciTe, this element probably won't help you.


Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

#Region mySectionOfCode

...

...

#EndRegion

These tags help you when coding with SciTe. You can fold the code that is outside of functions, so you don't have to scroll up and down through your editor so much so. If you aren't using SciTe, this element probably won't help you.

Cool! :D

My Grandfather always said "Learn something new every day." I just learned something new, and usefull too.

I haven't even gone to work yet, and I'm done for the day! :D


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

Share this post


Link to post
Share on other sites

Cool, I had kinda figured that was what it did, but I didn't know if my using it that way would cause unexpected issues. Great! I don't feel so dumb now... B-) And, er yeah... the Scite help files... I didn't even suspect it was a Scite only thing, only an AutoIt thing... d'oh!

Thanks all!

Share this post


Link to post
Share on other sites

It helps with organization too. But in my case my scripts are still very messy. BenEditor in particular.


http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script]

Share this post


Link to post
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
Sign in to follow this  
Followers 0