Page 1 of 1
Insert Programing Code
Posted: Mon Jan 25, 2010 12:56 pm
by ranman
Hi,
I am trying to insert some programming code (shell/perl/etc...) into the blog but I cannot find the most appropriate solution for it, and applying the quote feature does not look the best of all.
Any advised tag I should use the embed the code?
Thanks very much
Re: Insert Programing Code
Posted: Mon Jan 25, 2010 12:58 pm
by garvinhicking
Hi!
A good way would be the "Geshi" markup event plugin, that allows you to use [geshi lang=XXX] tags...?
HTH,
Garvin
Re: Insert Programing Code
Posted: Mon Jan 25, 2010 1:25 pm
by ranman
garvinhicking wrote:Hi!
A good way would be the "Geshi" markup event plugin, that allows you to use [geshi lang=XXX] tags...?
HTH,
Garvin
Yes, to enclose something like
Not expecting something like the one above, but maybe anything similar/of the kind?
etc..
Re: Insert Programing Code
Posted: Mon Jan 25, 2010 2:20 pm
by garvinhicking
Hi!
Yes, Geshi should be able to do that.
Regards,
Garvin
Re: Insert Programing Code
Posted: Mon Jan 25, 2010 3:09 pm
by ranman
Apologies,
I am getting some issues when making the tool running:
Code: Select all
Warning: require_once(plugins/serendipity_event_geshi/geshi.php) [function.require-once]: failed to open stream: No such file or directory in /home/menteyar/public_html/generations/plugins/serendipity_event_geshi/serendipity_event_geshi.php on line 144
Fatal error: require_once() [function.require]: Failed opening required 'plugins/serendipity_event_geshi/geshi.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/menteyar/public_html/generations/bundled-libs/:/home/menteyar/public_html/generations/bundled-libs/Smarty/libs/:/home/menteyar/public_html/generations/:') in /home/menteyar/public_html/generations/plugins/serendipity_event_geshi/serendipity_event_geshi.php on line 144
The Path where GeSHi package is installed relative to Serendipity root directory should be right:
When the whole path is :
/home/<HOME_ENV>/public_html/serendipity/plugins/serendipity_event_geshi
I tried many paths but the same issue.
Also puzzles me the following:
plugins/serendipity_event_geshi/geshi.php (php at the end, unless something is missing from the .htaccess which should make think the serendipity_event_geshi/geshi stands for erendipity_event_geshi/geshi.php)
Sorry for all those so many questions
Re: Insert Programing Code
Posted: Mon Jan 25, 2010 3:15 pm
by garvinhicking
Hi!
How did you install the plugin? It seems that the geshi.php file is missing?! You can download the plugin package from
http://spartacus.s9y.org, make sure that all files are inside the plugin directory - once the files are there, you should be able to install and use the plugin within Serendipity.
HTH,
Garvin
Re: Insert Programing Code
Posted: Mon Jan 25, 2010 4:44 pm
by ranman
Hi,
Interesting,
I installed using the spartacus plugin within the application/blog, then the file was missing from repository?
I manually took it and it worked now, no problem.
Looking the way or removing the <br/> tags at the end of the lines.
(generations.menteyarte.org)
Re: Insert Programing Code
Posted: Mon Jan 25, 2010 5:30 pm
by ranman
Problem sorted, sorry.
As could be expected conflict with another event plugin
Thanks very much