![]() ![]() This is the outermost block (the one enclosing the whole procedure) Begin/End (nested) Folds any other begin-end block Repeat Case Try Folds any entire Try-finally/except-end block Except/Finally Lets you fold any code between the "except" or "finally" keyword and the closing "end" of the "try" block Asm Program Folds the entire code up to the "end." statement. Procedure Folds entire procedures or functions Var/Type (local) Folds any var, type or const declaration block that is local to a procedure Begin/End (procedure) Folds the begin-end block of a procedure or function. Select (tick) the Pascal sections you want to be foldable. At first installation, the Lazarus IDE sets a few of the following as defaults, but all are optional. For the editor to know which kind of lines and blocks of Pascal code should be foldable you have to specify what you want. If disabled, folding functionality is removed, and the Gutter no longer displays a fold tree.Ĭurrently code folding is only supported for source code editors which are showing Object Pascal files (*.pas, *.pp, *.lpr etc.), HTML, XML, standard text diff format files, or form files created by the Designer (usually named *.lfm or *.dfm). The checkbox at the top enables or disables code folding globally in all source code windows. On the last line it displays a tiny edge.įoldable blocks can be nested or overlapped. The vertical line begins immediately below the sign and continues to the last line of the foldable block. | A vertical line is shown to the left of all foldable lines except the top line of such a foldable region.Clicking on the symbol will unfold (expand) this block. a collapsed block in which all but the first line is already folded (hidden). denotes the beginning of a folded foldable block, i.e. ![]() Clicking on the symbol will fold (collapse) this block. denotes the beginning of an unfolded foldable block, also termed an expanded block.This tree has a node corresponding to each line of text at which a foldable region starts. This will hide all but the first line of the block, and the first line will be marked with the folded-symbol "" at the end of that line.Ĭode folding is done by using a special area in the Gutter which displays the code folding tree. Code folding allows certain structure or blocks of text to be "collapsed". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |