How to use this developer tool
- Paste PHP code.
- Select highlighted, plain, or outline mode.
- Choose line-number and wrapping options.
- Generate the view.
View PHP code safely with escaped HTML, line numbers, lightweight syntax highlighting, long-line detection, and a quick symbol outline without executing the code.
It escapes all user code first, tokenizes common PHP syntax classes, and produces a readable display or declaration outline.
Syntax coloring is approximate and is not a complete PHP grammar implementation. The source is never executed.
Input: a PHP function.
Output: escaped, numbered code with keyword, variable, string, and comment classes represented safely.
Enable Show line numbers and run the viewer.
Use Syntax-highlighted HTML. The source is escaped and tokenized, not executed.
Use your browser find command on the generated view or use outline mode to narrow declarations.
Escape HTML-sensitive characters before inserting any code into rendered HTML.
Use outline mode to list detected declarations with line numbers.
| Module | Purpose |
|---|---|
| Safety | HTML escaping |
| Navigation | Line numbers and outline |
| Readability | Lightweight token colors |
| Review | Long-line detection |