Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-08 19:17:57

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

fox_code - A bridge to the powerful GeSHi syntax highlighter

description
In order to have an easy to use syntax highlighter into TextPattern I wrote this plugin, fox_code.
It brings some useful tags that will allow you to customize your code sections just like you want, because of it’s integration with textpattern’s templates.

Here is the link to the plugin’s page: fox_code project page
It’s written in italian, but the plugin’s help page (the one that you can read from textpattern I mean) it’s in english.

installation
You have to install the GeSHi library before starting to use the plugin. You can download it from this page, and unpack geshi.php and the geshi folder into textpattern/lib.

Hi all :D

Last edited by Gr3yFox (2009-06-30 16:50:25)


Gr3yFox

Offline

#2 2007-07-16 15:17:56

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Version 0.1.1 is now available, it’s a little and stupid bugfix.


Gr3yFox

Offline

#3 2007-12-08 11:42:16

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Version 0.2 is out.
Now it’s possible to print only some lines of a file, thanks to the new arguments fromline and toline.


Gr3yFox

Offline

#4 2007-12-11 13:47:32

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Riccardo

thank you for your work on this plugin. I’m not currently using it myself but it has proven useful to me as an example of how to call GeSHi directly for a project I’m working on now.


Steve

Offline

#5 2007-12-11 19:14:42

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

I’m very glad it has been useful for you :)


Gr3yFox

Offline

#6 2008-01-07 20:22:55

oCameLo
New Member
Registered: 2008-01-07
Posts: 7

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

I got this error msg:

tag_error <txp:fox_code language=“php”> -> Warning: require_once(geshi.php) [function.require-once]: failed to open stream: No such file or directory on line 65

So I add this line to config.php:

ini_set(‘include_path’, ini_get(‘include_path’).PATH_SEPARATOR.dirname(FILE).’/../lib’);

Now, the plugin works.

In my post (enable textile), I wrote this:

<txp:fox_code language=“php”>
phpinfo();
</txp:fox_code>

But the result is:

<p><div class=“php” style=“font-family: monospace;”><ol><li style=“font-family: ‘Courier New’, Courier, monospace; color: black; font-weight: normal; font-style: normal;”><div style=“font-family: ‘Courier New’, Courier, monospace; font-weight: normal;”>&lt;br /&gt;</div></li>
<li style=“font-family: ‘Courier New’, Courier, monospace; color: black; font-weight: normal; font-style: normal;”><div style=“font-family: ‘Courier New’, Courier, monospace; font-weight: normal;”><span style=“color: #000066;”>phpinfo</span><span style=“color: #66cc66;”>(</span><span style=“color: #66cc66;”>)</span>;&lt;br /&gt;</div></li></ol></div></p>

Thanks for ur work.

Offline

#7 2008-01-07 20:41:44

oCameLo
New Member
Registered: 2008-01-07
Posts: 7

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

faint.. this will work, but it’s so..

notextile.. <txp:fox_code language=“php”>
phpinfo();
</txp:fox_code>

Offline

#8 2008-01-09 09:02:09

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Yes, unfortunately at the moment I didn’t find any other solution except disabling textile.
In the next release I’ll try to find the way to do it automatically and only for the text inside the tag.
Thank you for your feedback :)


Gr3yFox

Offline

#9 2009-06-30 14:44:59

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Orphan? Why?


Gr3yFox

Offline

#10 2009-06-30 16:30:58

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

I believe plugins were marked as orphan if the author hadn’t posted on the forums in a certain amount of time.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#11 2009-06-30 16:37:31

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Hi Riccardo,

All plugins whose authors did not post in the forum for over a year have been marked as orphan. This work was done so as to

  1. notify users that the author is not supporting the plugin.
  2. encourage other plugin authors to adopt orphan plugins.

If you are still supporting the plugin, please do remove the notice from the thread’s title.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#12 2009-06-30 16:48:35

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Oh. Well, here I am.
Thank you :)

@colak: yes, I’m still supporting this plugin. Thank you too for the info.

Last edited by Gr3yFox (2009-06-30 16:49:56)


Gr3yFox

Offline

Board footer

Powered by FluxBB