Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class HighlightController extends AppController{
- var $layout='';
- var $uses=array();
- var $components=array('highlight');
- function index(){
- $this->render('high_light',null);
- }
- function highLighting(){
- pr($_POST['type']);
- $this->highlight->STX($_POST['type']);
- $result=$this->highlight->stx_string($_POST['content']);
- pr($result);
- $this->set('code',$result);
- $this->render('high_light_result',null);
- }
- }
- ?>
Add Comment
Please, Sign In to add comment