Overview Q & A Rating & Review
PHP Enhanced Syntax Highlighter
A powerful and intuitive free extension for Visual Studio that significantly improves the PHP development experience through advanced syntax highlighting and intelligent code validation.
Key Features
Smart Block Highlighting
When your cursor is on a control keyword, the extension automatically highlights all related keywords in the block:
Try-Catch-Finally : simultaneously highlights the try, catch, and finally keywords of the current block
If-ElseIf-Else-EndIf : highlights the entire chain of conditions
Foreach-EndForeach : clearly marks the start and end of loops
Brace Matching : matches curly brackets {}, square brackets [], and parentheses ()
Real-time Syntax Checking
Detects unclosed or unbalanced blocks
Flags try blocks without catch or finally
Verifies proper closure of control structures
Provides instant alerts while coding
Works seamlessly with:
Pure .php files
HTML files with embedded PHP blocks
Both multiline and inline PHP syntax
How to Use
Install the extension from the Marketplace
Open any PHP file in Visual Studio
Place the cursor on a control keyword (try, if, foreach, etc.)
Related keywords are automatically highlighted with a colored background
Configuration
The extension works out-of-the-box with no additional setup required.
Highlighting colors adapt automatically to your current Visual Studio theme.
Supported Themes
Compatible with all Visual Studio themes
Uses a default lime-yellow highlight color
Supports both light and dark themes
Requirements
Visual Studio 2026 or newer
Visual Studio 2022 or newer
Visual Studio 2019 or newer
No external dependencies
Bug Reporting and Feature Requests
Found a bug or have a suggestion?
Changelog
Version 1.0.2
Improved highlighting matching for mixed braces
Added marker in the scrollbar for matching braces
Version 1.0.1
Improved highlighting for braces and condition
Improved speed and security
Version 1.0.0
Initial release
Block highlighting for try-catch-finally
Block highlighting for if-elseif-else-endif
Block highlighting for foreach-endforeach
Brace matching for curly, square, and round brackets
Real-time syntax validation
Support for inline and multiline keywords
Author
Developed with ❤️ for the PHP community
License
MIT License
Boost your PHP productivity today!