PHP Classes

File: example2.php

Recommend this page to a friend!
  Classes of Giulio Bai   Highlighter   example2.php   Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Example #2
Class: Highlighter
Reformat highlighted PHP code
Author: By
Last change:
Date: 17 years ago
Size: 219 bytes
 

Contents

Class file image Download
<?php

include_once('highlighter.php');

$code = "Add tag box, highlights the code also";

$highlight = new Highligher;

$code = $highlight->add_tags($code, "box");
$code = $highlight->highlight($code);

echo
$code;

?>