Using highlight_file with header() to Output Correct Content-Type Header Information
This article demonstrates how to use the highlight_file() function along with header() to correctly set the Content-Type header, ensuring proper rendering of syntax-highlighted PHP code in the browser.
highlight_file