PHP Classes

File: example1.php

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

Contents

Class file image Download
<?php

include_once('highlighter.php');

$highlight = new Highligher;

$code = "tag box; only tags, not highlight";
$code = $highlight->add_tags($code, "box");

echo
$code;


$code = "div class boxed; only tags, not highlight";
$code = $highlight->add_tags($code, "boxed", 1);

echo
$code;

?>