PHP Syntax Highlighter with Linking Functions2026-09-23

All code examples in our manuals were enhanced by linking class names, methods or constants to their related API reference for a long time.

This was done previously by some hacky JavaScript which used the information of our client side search function in only our manual which made it impossible to use a simliar solution on our main website or in our demo repository.

We searched a long time for a PHP syntax highlighter with such feature without success. That's why we had to build it our own! The source code is licensed under the MIT license and is available on GitHub and released via Packagist.

All demos on setasign.com and on demos.setasign.com use this feature as of now:

GIF Image presenting how source code is linked to the API reference.

Feedback or Ideas?

We hope that this tool will help you with implementing our solutions or to enhance your own documentation. If you have any comment or idea how we can improve it, feel free to reach out through issues on GitHub or simply send an email to support@setasign.com.