highlight_string Syntax highlighting of a string &reftitle.description; mixedhighlight_string stringstr boolreturnfalse Outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. &reftitle.parameters; str The PHP code to be highlighted. This should include the opening tag. return Set this parameter to &true; to make this function return the highlighted code. &reftitle.returnvalues; If return is set to &true;, returns the highlighted code as a string instead of printing it out. Otherwise, it will return &true; on success, &false; on failure. &reftitle.changelog; &Version; &Description; 4.2.0 The return parameter was added. &reftitle.examples; <function>highlight_string</function> example '); ?> ]]> The above example will output (in PHP 4): <?php phpinfo(); ?> ]]> The above example will output (in PHP 5): <?php phpinfo(); ?> ]]> &reftitle.notes; ¬e.uses-ob; &reftitle.seealso; highlight_file Highlighting INI directives