Sign in Join
Wiki copytemporary

IDE Window: Divider Drawing: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: IDE Window: Divider Drawing

OldNewLine
1+## Navigation
2+
3+You can reach this dialog from the Lazarus IDE:
4+
5+- [[Main menu|Main Menu]] \> [[Main menu|Tools]] \> [[IDE Window: IDE Options Dialog|Options]] \> [[IDE Window: Editor Options|Editor]] \> Divider drawing
6+- Source Editor popup context menu \> Options... \> Editor \> Divider drawing.
7+
8+## Divider Drawing
9+
10+The source editor draws horizontal dividers between blocks off code helping the programmer to quickly see where a block starts and ends. What a block is can be defined in detail for each language and block type.
11+
12+To see see how the editor look with divider drawing enabled, have a look [[New IDE features since|here]].
13+
14+Divider lines can be configured on a detailed level.\
15+For example you can choose to have a divider after every top-level procedure/function. (set the level to 1) Or you can include nested functions up to a desired level. (level \>= 2)
16+
17+You can have dividers after the following logical breaks
18+
19+- Unit Sections: implementation, interface, initialization, ...
20+- Uses Clause: In case it gets multi line
21+- Var/Type: any var/type/const block on top-level (not in a procedure)
22+- Var/Type(local): any var/type/const inside a procedure
23+
24+
25+ The nest level indicates how deeply the *procedure* is nested (as var blocks can not nest themselves)
26+- Class/Struct: Class/Record or Object declarations. The nest level is for records defined inside a class.
27+- Class/Struct(local): same if used inside a type declaration local to a procedure
28+- Procedure/Function:
29+- Begin/End: Includes Case/Repeat, but not try/except. The nesting is counted to the containing Procedure
30+- Try/Except:
31+
32+Note:
33+
34+- unfinished blocks (open begin with no end) can fool the highlighter.
35+- blocks that finish on the same line, on which the opened are ignored
36+
37+---
38+*From the Free Pascal wiki, page "IDE Window: Divider Drawing", as it stood on 2021-02-15 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history