Location: PHPKode > scripts > Template Processor > template-processor/example_highlight.php
<?php
	/**
	 * Include the class
	 */
	require_once('./template.class.php');

	/**
	 * Construct
	 */
	$temp = new Template();

	/**
	 * Configurere the class
	 */
	$temp->set_option('highlight', true);

	/**
	 * To disable the change of font used, then set the option
	 * 'highlightmono' to false
	 *
	 * 	$temp->set_option('highlightmono', false);
	 *
	 */

	/**
	 * Add some cache
	 */
	$temp->addcache("<?php\n\t/**\n\t * Classic Hello World Example\n\t */\n\n\techo(\"Hello World\\n\");\n?>");

	/**
	 * Compile
	 */
	$temp->compile();
?>
Return current item: Template Processor