The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: what is GESHI?
PostPosted: Tue Nov 22, 2005 12:14 am 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Fri Sep 02, 2005 10:23 pm
Posts: 365
Location: Mazatlan, Sinaloa, Mexico
I found this one in mambots, what can I do with it?

_________________
http://www.joomla.com.mx
Joomla Mexico!


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Tue Nov 22, 2005 12:30 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sat Aug 20, 2005 5:15 pm
Posts: 184
Location: Fruitport, MI
http://qbnz.com/highlighter/ - it highlights stuff - I know it's used in searches to highlight the terms that you searched for, maybe used in other ways too.

_________________
Cheers - T3.6K


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Wed Dec 14, 2005 1:10 pm 
User avatar
Joomla! Champion
Joomla! Champion

Joined: Fri Aug 19, 2005 3:03 pm
Posts: 6046
Location: Indiana, USA
GeSHi also:

- changed all numbers contained in
 tags to the color cc66cc. 

don't ask me why!

_________________
If you're new to Joomla, Please read Anna's Joomla! Tips: viewtopic.php?t=5503

http://nathandiehl.com | Find out what makes me tick


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Tue Mar 28, 2006 9:55 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Sep 11, 2005 7:46 pm
Posts: 136
Location: san francisco, ca usa
I've turned on the Geshi bot, but when I do searches, I get no highlighting.
How does one turn this ON?

Thanks for your advice


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Tue Mar 28, 2006 10:50 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 3:36 pm
Posts: 618
consigliere wrote:
I found this one in mambots, what can I do with it?


http://qbnz.com/highlighter/


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Wed Mar 29, 2006 12:51 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 26, 2005 1:31 am
Posts: 1347
I think it changes code in a pre tag to pretty colors

_________________
Follow me on Twitter @compassdesign
www.compassdesigns.net - Get get free templates and news for Joomla
simplweb.com/joomla-hosting - Fully Managed Joomla Hosting - Unlimited Support


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Wed Mar 29, 2006 1:27 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Fri Aug 19, 2005 2:26 am
Posts: 2351
Location: Lancaster, Lancashire, United Kingdom
It is an attempt to format source code when placed in an article - I guess.
It cropped up in a conversation the other day - but it appears far more basic than what is promised on the site referenced above.
Not sure if this is a port of that code, or just something named similarly out of respect!
Perhaps it can be extended or configured to do a better job?

Dean

_________________
Dean Marshall Consultancy - team of six Joomla experts
http://www.deanmarshall.co.uk/
Pharma Hack Fix http://www.deanmarshall.co.uk/pharma-hack-intro.html


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Wed Mar 29, 2006 5:07 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Sep 11, 2005 7:46 pm
Posts: 136
Location: san francisco, ca usa
I know what it is in 'concept' and what it's supposed to do.
Search hit highlighting has been around for a while.

My question, better put is this:

There is a mambot in Joomla called Geshi.
I have turned it on.
I search for the word 'joomla' in my site, and while it finds many results, none of the clicked results details highlights the word 'joomla'

So what's the next step please?
Do I update my template code.
Is there a hack?

What exactly has to happen next?
Thanks


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Wed Mar 29, 2006 5:34 am 
Joomla! Guru
Joomla! Guru

Joined: Tue Jan 17, 2006 7:42 am
Posts: 908
Quote:
I search for the word 'joomla' in my site, and while it finds many results, none of the clicked results details highlights the word 'joomla'

I think you've misunderstood the function of Geshi Mambot.
Geshi mambot is used to display colored syntac in article. (whatever syntac, be it c++, css or php)
Suppose you want to put an article about flash actionscript:
You can put:

var $test;
for ($test =1; $test = 20; $testi++){
gotoandplay{$i);
}


And the result would be:

var $test;
for ($i =1; $i = 20; $i++){
gotoandplay{$i);
}

Correct me if I am wrong?  :)


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Wed Mar 29, 2006 6:11 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Sep 11, 2005 7:46 pm
Posts: 136
Location: san francisco, ca usa
Oh wow, so maybe I totally misunderstood.
I thought that this same method would be used to do hit hghlighting.

So let me ask you this.
In the search box at the top right of this page put in 'geshi' and hit the SEARCH button
You get a bunch of highlighted 'geshi' words in the search results.

Is that a function of this forum, and not of the rest of Joomla?
How is it done? Maybe only in SMF then.


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Wed Mar 29, 2006 10:11 am 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Aug 19, 2005 3:36 pm
Posts: 618
From the Joomla help files:


GeSHi:

This displays formatted code in content items based on the GeSHi highlighting engine.

This is to be considered as an enhanced version of mosCode, allowing the rendering of many different programming languages with color-highlighted code by specifying the to-be-used language.

Usage: Use the "pre" tag and add the programming language you want to use for highlighting purposes as a parameter. Example:

< pre lang="xml" >your code here ... < /pre >

The mambot version of the GeSHi highlight code comes with the following highlighters for the most common renders installed, ready to be used:

  • CSS => use lang="css"
  • Html4 Strict => use lang="html4strict"
  • JavaScript => use lang="javascript"
  • PHP => use lang="php"
  • PHP Brief => use lang="php-brief"
  • SQL => use lang="sql"
  • XML => use lang="xml"

Should you need additonal languages, you may download the full package from the developer site: http://qbnz.com/highlighter/ which includes over 30 languages. You should then upload the required "newLanguage.php" from the package into your "\mambots\content\geshi\geshi" folder.

NOTE:  As of 4.5.2.1, this bot seems to have an incompatibility with the Email cloaking mambot.


Top
 Profile  
 
 Post subject: Re: what is GESHI?
PostPosted: Fri Feb 02, 2007 10:45 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Mar 03, 2006 3:52 pm
Posts: 1023
Location: Macon, GA
Does this not work with editors like JCE?

_________________
http://www.netentropy.com - Drupal, Joomla and whatever performance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 



Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group