highlight_string Syntax highlighting of a string &reftitle.description; stringboolhighlight_string stringstring boolreturn&false; Outputs or returns html markup for a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. &reftitle.parameters; string 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; 8.3.0 The resulting HTML has changed. &reftitle.examples; <function>highlight_string</function> example '); ?> ]]> &example.outputs; <?php phpinfo(); ?> ]]> &example.outputs.83; <?php phpinfo(); ?> ]]> &reftitle.notes; ¬e.uses-ob; The HTML markup generated is subject to change. &reftitle.seealso; highlight_file Highlighting INI directives