Textile markup for CodeIgniter

Installation

  • copy textpattern/lib/classTextile.php to your application/libraries and rename it Textile.php
  • replace the first line:
<?php

by

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

Use

$this->load->library('textile');
echo $this->textile->TextileThis("_It's working!_");

Output:

<p><em>It&#8217;s working!</em></p>

Reference

Feedback