random42 Posted February 13, 2007 Share Posted February 13, 2007 I was looking to convert a numeric month into the word and came across Valik's code (link below) to do so. In looking at it I see he uses #region and #endregion which I hadn't heard of. I naturally clicked the word and pressed F1 to read the help file. Nothing. Not the first time though so I switched to the search tab. Still nothing useful for my imediate purposes. I did learn a little about pixel regions though. Next I came here and searched for #region and #endregion. I don't see any obvious posts in regards to these other than the standard JokesII post that comes up with every search. Apparently this forum can even make jokes about #region - which is really quite impressive... or twisted... or both. Either way at this point I wouldn't get the joke. Can someone direct me to the appropriate location to find info about #region?http://www.autoitscript.com/forum/index.ph...;hl=month++nameThanks! Link to comment Share on other sites More sharing options...
herewasplato Posted February 13, 2007 Share Posted February 13, 2007 It is for code folding. Open Valik's code within the SciTE editor and click on the minus sign between the line number and the line with #region on it for a demo* of code folding. * I do not know if "SciTE-Lite" folds code - I have the "full version" of SciTE4AutoIt3. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
random42 Posted February 13, 2007 Author Share Posted February 13, 2007 Mine folds the code. I just thought it might do more than that. Not that being able to format in SciTE isn't useful enough. So it is simply to make it more readable? It doesn't provide any functionality beyond formating? Link to comment Share on other sites More sharing options...
Developers Jos Posted February 13, 2007 Developers Share Posted February 13, 2007 Mine folds the code. I just thought it might do more than that. Not that being able to format in SciTE isn't useful enough.So it is simply to make it more readable? It doesn't provide any functionality beyond formating?Its very handy when you have a real big script to section the code in regions that easily fold and unfold.....The Folding is part of SciLexer.dll used by all versions of SciTE.... 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 More sharing options...
i542 Posted February 13, 2007 Share Posted February 13, 2007 These codes are used in SciTE to organise code better. Like: #region Start ;some stuff #endregion #region More boring stuff ;some stupid stuff #endregion #region Loop while 1 ;loop wend #endregion DO NOT RUN THIS SCRIPT i542 I can do signature me. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now