speech
Using GeSHi Highlighter with PyroCMS/CodeIgniter - Easy as 1 2 3

Posted: 07-18-2011
Category: PHP Stuff

The easy way to use GeSHi Highlighter with PyroCMS/CodeIgniter.

Step 1: Download latest stable release of  GeSHi, currently version 1.0.8.10.

Step 2:  Unzip the archive, and copy geshi.php and the geshi folder to your PyroCMS addons/libraries* folder. For CodeIgniter, copy them to your application/libraries folder. You don't need the docs or contrib folders, though you may want to browse through the docs.

* Alternatively, you could place them in the system/pyrocms/libraries folder.

Step 3: Load the class file in your controller and then create a new GeSHI object:

 
 // load the library
 $this->load->library('geshi');
 // create a new geshi object
 $geshi = new GeSHi($source, $language);
  // parse the code
 $geshi->parse_code();
 

That's it! Easy as 1 2 3!

I didn't need to make any modifications to class or file names to get things working. This worked on Ubuntu Linux, so hopefully no one will run into any problems.

For PyroCMS/Codeigniter developers, you can now use the GeSHi library just like any other in your projects. I even created a PyroCMS/CodeIgniter Geshi Helper File for your convenience!

For PyroCMS users, I created a GeSHi Code Highlighter plugin for PyroCMS that you can use in your blog or any other pages.

Hope this makes it easier for everyone to use the GeSHi library with their next PyroCMS/CodeIgniter project!!


  • PHP
  • Scripts
  • MS
  • Office
  • Templates
  • and
  • Files
  • Assorted
  • Linux
  • Bash
  • Scripts
  • Perl
  • Scripts
  • PDF
  • FIles
  • MS
  • Excel
  • 2003
  • Template
  • employment
  • tools
  • job
  • search
  • tools
  • spreadsheet
  • Job
  • Search
  • Spreadsheet
  • Template
  • bash
  • shell
  • script
  • file
  • backup
  • linux
  • gzip
  • tar
  • File
  • Backup
  • Script
  • Transmission
  • shell
  • script
  • public
  • torrent
  • private
  • torrent
  • Bit
  • Torrent
  • Transmission
  • BitTorrent
  • Completion
  • Script
  • Transmission
  • shell
  • script
  • torrent
  • information
  • Bit
  • Torrent
  • Transmission
  • Bit
  • Torrent
  • Get
  • Torrent
  • Info
  • bash
  • shell
  • script
  • add
  • user
  • samba
  • samba
  • user
  • add
  • samba
  • user
  • linux
  • command
  • line
  • Add
  • System
  • and
  • Samba
  • User
  • geshi
  • pyrocms
  • php
  • codeigniter
  • PyroCMS/CodeIgniter
  • Geshi
  • Helper
  • File
  • geshi
  • pyrocms
  • php
  • codeigniter
  • GeSHi
  • Code
  • Highlighter
  • plugin
  • for
  • PyroCMS
  • perl
  • cgi
  • hit
  • counter
  • Simple
  • Perl
  • Hit
  • Counter
  • pyrocms
  • codeigniter
  • php
  • ip
  • address
  • session
  • userdata
  • PyroCMS
  • IP
  • Address
  • Plugin
  • Soyo
  • SY5SSM
  • Socket
  • 7
  • Motherboard
  • Quick
  • Start
  • Guide
  • Soyo
  • SY5SSM
  • Socket
  • 7
  • Motherboard
  • Quick
  • Start
  • Guide
  • Home
  • web
  • designit
  • supportlinuxphpbash
  • PRIVACY
  • Statement
  • LEGAL
  • Disclaimer
  • Ebay
  • Listings
  • Soyo
  • Motherboard
  • PDF
  • Why
  • I
  • Like
  • the
  • HoneyPi
  • Brand
  • IR
  • Receiver
  • Module
  • for
  • the
  • Raspberry
  • Pi
  • Using
  • GeSHi
  • Highlighter
  • with
  • PyroCMS/CodeIgniter
  • Easy
  • as
  • 1
  • 2
  • 3
  • PHP
  • Stuff
  • Raspberry
  • PI