Does the Clarion Editor support Code Folding Regions like for example #REGION/#ENDREGION
?
Yes
!Region ** Displays when folded **
Xyz EQUATE(1)
!EndRegion
Amazing! That works! I looked in F1 and didn’t find it for some reason - but thank you @CarlBarnes !
I recently added REGION as an option in my Clarion XML Comments Tool. They can get verbose, and be distracting, so that way they can be folded to 1 line e.g.
!Region ReplaceBetween() Help ==================================================
!!! <summary>ReplaceBetween() fill this in with your help </summary>
!!! <param name="pLeft" > 1. STRING pLeft </param>
!!! <param name="pRight" > 2. STRING pRight Optional </param>
!!! <param name="pOldValue" > 3. STRING pOldValue </param>
!!! <param name="pNewValue" > 4. STRING pNewValue </param>
!!! <param name="pCount" > 5. LONG pCount Default=0 </param>
!!! <param name="pStart" > 6. LONG pStart Default=1 </param>
!!! <param name="pEnd" > 7. LONG pEnd Default=0 </param>
!!! <param name="pNoCase" > 8. LONG pNoCase Default=0 </param>
!!! <param name="pReplaceAll"> 9. LONG pReplaceAll Default=false </param>
!!! <returns>LONG PROC </returns>
!EndRegion
Greetings -
They become even more of use when you start doing hand code, classes, equates, system-wide definitions, groups, queues, documentation, etc.
Regards,
Roberto Artigas
Do the regions work in the Embed Editor?
I’ve just added them in a Clarion 8 project (through Clarion 11 IDE) - and the region does not work - it does not show a fold option.
Does indenting matter?
Seems it doesn’t work when editing it through an Embed - but does work when using the Source button
Greetings. Yes, it does work on the source while editing in the IDE.
And while in the source, as far as I can recall, indenting does not seem to matter.
But I tend to do regions on the left margin.
And to answer the next question. Here is where the expand all and contract all buttons are located on a click menu, when you use the mouse and click over the +/-. The purple arrow gets you the drop-down menu, and then you can use the red arrows.
Hope that helps.
Regards,
Roberto Artigas
It works in the “Embeditor” - but not the “Embed Editor” (When double clicking an embed to edit)
Greetings -
I have not tried region/endregion through any of the embeds.
Thank you for the information.
Regards,
Roberto Artigas