Skip to content
| Marketplace
Sign in
Visual Studio>Tools>My PHP Syntax Highlighter
My PHP Syntax Highlighter

My PHP Syntax Highlighter

MYETV

|
11 installs
| (0) | Free
Advanced PHP code highlighter with intelligent matching and real-time syntax checking. Features include: goldenrod PHP tags (<?php, ?>), smart brace matching for ( ), { }, [ ], full control structure chain highlighting (if/else/endif and others), quote pair matching like "..."...
Download

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

Multi-format Support

Works seamlessly with:

  • Pure .php files
  • HTML files with embedded PHP blocks
  • Both multiline and inline PHP syntax

How to Use

  1. Install the extension from the Marketplace
  2. Open any PHP file in Visual Studio
  3. Place the cursor on a control keyword (try, if, foreach, etc.)
  4. 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?

  • Repository on GitHub: https://github.com/OskarCosimo/My-PHP-Syntax-Highlighter/
  • Contact us via email: admin@myetv.tv
  • Leave a ticket to our support platform: https://support.myetv.tv

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!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft