note 47676 added to function.highlight-string

From: Date: Wed, 24 Nov 2004 21:45:17 +0000
Subject: note 47676 added to function.highlight-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-80989@lists.php.net to get a copy of this message
This simple script demonstrates the use of this function. Please feel free to ignore the copyright. <html> <head> <!-- © 2004 Sean Whitton --> <title>PHP Source Code Syntax Highlighter</title> </head> <body bgcolor="#FFFFFF"> <?PHP # © 2004 Sean Whitton if (isset($_POST['code'])) highlight_string($_POST['code']); else echo ' <form name="form1" method="POST" action="index.php"> <div align="center"> <textarea name="code" rows="20" cols="90"> </textarea> <br /> <input type="submit" value="Highlight Syntax"> </div> </form> '; ?> </body> </html> Sean Whitton ---- Manual Page -- http://www.php.net/manual/en/function.highlight-string.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47676 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47676&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47676&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47676&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47676&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47676&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47676&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47676&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80989) next »