Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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;”><br /></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>;<br /></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
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
Re: fox_code - A bridge to the powerful GeSHi syntax highlighter
Orphan? Why?
Gr3yFox
Offline
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.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
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
- notify users that the author is not supporting the plugin.
- 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
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