Advanced Syntax Highlighting
Understanding your code the way the compiler does is key to writing accurate programs. Using Castalia's advanced syntax highlighting features, you will see your code like never before. Castalia includes structural highlighting, advanced context-aware parenthesis matching, flow control highlighting, and live syntax checking right in the Delphi IDE code editor:
Parenthesis matching
No programmers editor is complete with parenthesis matching. This simple visual cue helps you to match parenthesis and understand deeply nested expressions.
Castalia is better
Delphi has included parenthesis matching in the code editor since Delphi 2005, but Castalia's is better:
- Delphi's native parenthesis matching isn't context-aware, so a parenthesis in a string can cause it to show incorrectly matched parenthesis. Castalia's parenthesis matching is context-aware, and doesn't have this problem, so you can trust it to show you the right match.
- For closing parenthesis, Castalia's parenthesis matching is activated when the cursor is to the RIGHT of the parenthesis, so you when typing, you can see which parenthesis pair you just closed. Delphi's native parenthesis matching always works when the cursor is to the left, making it ineffective when writing new code.
Live syntax checking
Live syntax checking uses a paradigm familiar from common word processors to identify syntax errors. Live syntax checking instantly and visually identifies missing semicolons, unmatched parenthesis or blocks, and malformed statements, and underlines them with a wavy red line so you can fix errors right away.