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:

Advanced syntax highlighting screenshot

Structural highlighting

Structural highlighting screenshot

Structural highlighting is a unique and powerful tool for visually understanding the structure of your code. Complex programming structures and deeply nested blocks of code become easy to read and comprehend with structural highlighting.

Flow control highlighting

Flow control highlighting screenshot

Flow control highlighting draws attention to lines of code that interrupt the linear execution of your code. Flow control highlighting can appear either at the end of the line (shown) or in the editor gutter.

Parenthesis matching

Parenthesis matching screenshot

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:

    Comparing Delphi's parenthesis matching with Castalia's
  • 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

Syntax checking screenshot

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.

Built with Delphi Embarcadero Technology Partner