# Finding a Better Syntax Highlighter for Modern PHP Code

DevFeed: [Finding a Better Syntax Highlighter for Modern PHP Code](<https://devfeed.tech/articles/a-syntax-highlighter-that-doesn-t-suck-44074.md>)

Original publisher: [Read original article](<https://stitcher.io/blog/a-syntax-highlighter-that-doesnt-suck>)

Author: Brent

Published: 2024-03-15T00:00:00Z

Content type: opinion

Language: en

Sources: [Stitcher](<https://devfeed.tech/sources/stitcher-io.md>)

Topics: [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>), [Highlight.js](<https://devfeed.tech/topics/highlightjs.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Server-side rendering](<https://devfeed.tech/topics/server-side-rendering.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [function](<https://devfeed.tech/topics/function.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [highlighting](<https://devfeed.tech/tags/highlighting.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [php](<https://devfeed.tech/tags/php.md>), [server-side-rendering](<https://devfeed.tech/tags/server-side-rendering.md>), [syntax](<https://devfeed.tech/tags/syntax.md>), [syntax-highlighting](<https://devfeed.tech/tags/syntax-highlighting.md>)

## AI overview

The author describes replacing a manual syntax-highlighting workflow for PHP code in the Tempest documentation. They explain frustrations with highlight.js and a PHP port, especially their handling of modern PHP syntax and server-side rendering needs.

## Source excerpt

Read the full post on https://stitcher.io/blog/a-syntax-highlighter-that-doesnt-suck