Highlight your PHP code

zhaozj2021-02-16  54

PHP has a very useful but many people have not noticed the function: highlight_string, use it you can easily highlight your PHP code. However, pay attention, highlight_string returns a boolean value, which will directly display the generated HTML code. Here is a simple PHP script I wrote, you can highlight your code, then attach the online editor to 9CBS :) It is recommended to set the font to Courier New after it is recommended. It looks more convenient.

If you are lazy, you can also visit http://exlcsoft.com/es5/Highlight.php to highlight your code ~