It is currently Sun Jul 20, 2008 12:42 am

Content - Code Hightlighter (GeSHi) Question

Discuss the development and implementation of Joomla! Plugins here.

Moderators: Toni Marie, pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.

Content - Code Hightlighter (GeSHi) Question

Postby psgeeks on Fri Nov 30, 2007 5:24 am

Hi all,

I have activated the plugin but can't understand how it works.  I know it is supposed to Highlight the code inside of an article but I do have code alot of my articles but nothing is getting highlighted.

Do i need to encapsulate the code with something? Can you tell me what i'm doing wrong?

Thanks  ???
http://www.PeopleSoftGeeks.com

Life can only be understood backwards but it must be lived forwards.
User avatar
psgeeks
Joomla! Intern
Joomla! Intern
 
Posts: 57
Joined: Mon Oct 22, 2007 2:19 am
Location: U.S.A

Re: Content - Code Hightlighter (GeSHi) Question

Postby AmyStephen on Fri Nov 30, 2007 5:35 am

Did you try enclosing your code in
code goes here
statements?

I *think* that is how it works.
Amy :)
Just getting started with Joomla!? Check out --> http://docs.joomla.org/Beginners
You think you're geek enough? Check out --> http://developer.joomla.org/tutorials.html
Congratulations to Anthony Ferrara, Bug Czar, on joining the Joomla! Core Team
User avatar
AmyStephen
Joomla! Champion
Joomla! Champion
 
Posts: 6071
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska

Re: Content - Code Hightlighter (GeSHi) Question

Postby psgeeks on Fri Nov 30, 2007 3:47 pm

AmyStephen wrote:Did you try enclosing your code in
code goes here
statements?

I *think* that is how it works.
Amy :)


I have done that, but no colors though! - does it recognize some languages and not others?
http://www.PeopleSoftGeeks.com

Life can only be understood backwards but it must be lived forwards.
User avatar
psgeeks
Joomla! Intern
Joomla! Intern
 
Posts: 57
Joined: Mon Oct 22, 2007 2:19 am
Location: U.S.A

Re: Content - Code Hightlighter (GeSHi) Question

Postby real_tengu on Thu Dec 27, 2007 10:05 pm

Try this if you have installed de ruby lang for GeSHi, else try changing to your lang.

puts "Hello World!"


Sorry my bad english.
User avatar
real_tengu
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 21
Joined: Thu Dec 27, 2007 10:01 pm

Re: Content - Code Hightlighter (GeSHi) Question

Postby AmyStephen on Fri Dec 28, 2007 5:06 am

real_tengu -

That's a nice blog you wrote on using GeSHi in Joomla!. Very helpful! Thanks!

Amy :)
Just getting started with Joomla!? Check out --> http://docs.joomla.org/Beginners
You think you're geek enough? Check out --> http://developer.joomla.org/tutorials.html
Congratulations to Anthony Ferrara, Bug Czar, on joining the Joomla! Core Team
User avatar
AmyStephen
Joomla! Champion
Joomla! Champion
 
Posts: 6071
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska

Re: Content - Code Hightlighter (GeSHi) Question

Postby pikepace on Fri Dec 28, 2007 5:21 am

The following post lists a few different language commands for GeSHi,
http://forum.joomla.org/index.php/topic ... #msg271080

That should provide the examples necessary for determining how to get correct highlighting for any language you are using.
User avatar
pikepace
Joomla! Engineer
Joomla! Engineer
 
Posts: 341
Joined: Fri Aug 26, 2005 7:10 pm
Location: Los Angeles, CA, USA

Re: Content - Code Hightlighter (GeSHi) Question

Postby fernandoch on Wed Feb 27, 2008 9:36 pm

Still not clear for me how to use it....

With which editor should I do it? Can I do it with TinyMCE 2.0?

Can someone please give more details?
fernandoch
Joomla! Intern
Joomla! Intern
 
Posts: 92
Joined: Thu Sep 08, 2005 8:40 am

Re: Content - Code Hightlighter (GeSHi) Question

Postby real_tengu on Wed Feb 27, 2008 9:44 pm

You must be desactivate all WYSIWYG Editors and do it in plain text, like a big boy :D
User avatar
real_tengu
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 21
Joined: Thu Dec 27, 2007 10:01 pm

Re: Content - Code Hightlighter (GeSHi) Question

Postby fernandoch on Wed Feb 27, 2008 9:59 pm

But if I deactivate TinyMCE 2.0 I get this error when I access an article:

Warning: Attempt to assign property of non-object in C:\Archivos de programa\xampp\htdocs\xampp\Joomla1.5\libraries\joomla\html\editor.php on line 303

Fatal error: Call to a member function get() on a non-object in C:\Archivos de programa\xampp\htdocs\xampp\Joomla1.5\plugins\editors\tinymce.php on line 58

What editor should I have on? Can you please give more details?
fernandoch
Joomla! Intern
Joomla! Intern
 
Posts: 92
Joined: Thu Sep 08, 2005 8:40 am

Re: Content - Code Hightlighter (GeSHi) Question

Postby real_tengu on Wed Feb 27, 2008 10:09 pm

Edit your user, the parameter "User Editor" must be "Editor - No editor" or something similar to this, I have Joomla! in spanish and I think that in English y similar to this.
User avatar
real_tengu
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 21
Joined: Thu Dec 27, 2007 10:01 pm

Re: Content - Code Hightlighter (GeSHi) Question

Postby fernandoch on Wed Feb 27, 2008 10:13 pm

OK, I have no editor now, how to use geshi? Can you give me an example?
fernandoch
Joomla! Intern
Joomla! Intern
 
Posts: 92
Joined: Thu Sep 08, 2005 8:40 am

Re: Content - Code Hightlighter (GeSHi) Question

Postby real_tengu on Wed Feb 27, 2008 10:27 pm

An spanish example here:

http://tengu.dnsdojo.org/component/cont ... 201.5.html

This is the most important

Code: Select all
<pre xml:lang="ruby">puts "Hello World!"</pre>


ruby is the language you whis, attention whit de xml:lang, before was lang only
User avatar
real_tengu
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 21
Joined: Thu Dec 27, 2007 10:01 pm

Re: Content - Code Hightlighter (GeSHi) Question

Postby fernandoch on Wed Feb 27, 2008 10:51 pm

It worked with

<pre xml:lang="php">puts "Hello World!"</pre>

because ruby does not come by default installed.

How to have the same highlight we have here in the forum?
fernandoch
Joomla! Intern
Joomla! Intern
 
Posts: 92
Joined: Thu Sep 08, 2005 8:40 am

Re: Content - Code Hightlighter (GeSHi) Question

Postby fernandoch on Wed Feb 27, 2008 11:03 pm

Code: Select all
I mean can we write like that with Geshi?
fernandoch
Joomla! Intern
Joomla! Intern
 
Posts: 92
Joined: Thu Sep 08, 2005 8:40 am

Re: Content - Code Hightlighter (GeSHi) Question

Postby fernandoch on Tue May 27, 2008 5:19 pm

Can't we use Geshi with TinyMCE?
fernandoch
Joomla! Intern
Joomla! Intern
 
Posts: 92
Joined: Thu Sep 08, 2005 8:40 am


Return to Plugins

Who is online

Users browsing this forum: No registered users and 0 guests