what is GESHI?

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: 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.
User avatar
consigliere
Joomla! Explorer
Joomla! Explorer
Posts: 365
Joined: Fri Sep 02, 2005 10:23 pm
Location: Mazatlan, Sinaloa, Mexico
Contact:

what is GESHI?

Postby consigliere » Tue Nov 22, 2005 12:14 am

I found this one in mambots, what can I do with it?

t3.6k
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 184
Joined: Sat Aug 20, 2005 5:15 pm
Location: Fruitport, MI
Contact:

Re: what is GESHI?

Postby t3.6k » Tue Nov 22, 2005 12:30 am

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

User avatar
nathandiehl
Joomla! Champion
Joomla! Champion
Posts: 6044
Joined: Fri Aug 19, 2005 3:03 pm
Location: Indiana, USA
Contact:

Re: what is GESHI?

Postby nathandiehl » Wed Dec 14, 2005 1:10 pm

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

emagin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 136
Joined: Sun Sep 11, 2005 7:46 pm
Location: san francisco, ca usa

Re: what is GESHI?

Postby emagin » Tue Mar 28, 2006 9:55 pm

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

User avatar
Nic
Joomla! Guru
Joomla! Guru
Posts: 618
Joined: Fri Aug 19, 2005 3:36 pm
Contact:

Re: what is GESHI?

Postby Nic » Tue Mar 28, 2006 10:50 pm

consigliere wrote:I found this one in mambots, what can I do with it?


http://qbnz.com/highlighter/

User avatar
compass
Joomla! Ace
Joomla! Ace
Posts: 1347
Joined: Fri Aug 26, 2005 1:31 am
Contact:

Re: what is GESHI?

Postby compass » Wed Mar 29, 2006 12:51 am

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

User avatar
DeanMarshall
Joomla! Hero
Joomla! Hero
Posts: 2352
Joined: Fri Aug 19, 2005 2:26 am
Location: Lancaster, Lancashire, United Kingdom
Contact:

Re: what is GESHI?

Postby DeanMarshall » Wed Mar 29, 2006 1:27 am

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 - six Joomla experts - http://www.deanmarshall.co.uk/

Joomla Experts - Joomla Support http://www.deanmarshall.co.uk/joomla-services/joomla-help-joomla-support.html

emagin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 136
Joined: Sun Sep 11, 2005 7:46 pm
Location: san francisco, ca usa

Re: what is GESHI?

Postby emagin » Wed Mar 29, 2006 5:07 am

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

eddyyanto
Joomla! Guru
Joomla! Guru
Posts: 908
Joined: Tue Jan 17, 2006 7:42 am

Re: what is GESHI?

Postby eddyyanto » Wed Mar 29, 2006 5:34 am

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?  :)

emagin
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 136
Joined: Sun Sep 11, 2005 7:46 pm
Location: san francisco, ca usa

Re: what is GESHI?

Postby emagin » Wed Mar 29, 2006 6:11 am

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.

User avatar
Nic
Joomla! Guru
Joomla! Guru
Posts: 618
Joined: Fri Aug 19, 2005 3:36 pm
Contact:

Re: what is GESHI?

Postby Nic » Wed Mar 29, 2006 10:11 am

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.

User avatar
researchtoxic
Joomla! Ace
Joomla! Ace
Posts: 1023
Joined: Fri Mar 03, 2006 3:52 pm
Location: Macon, GA
Contact:

Re: what is GESHI?

Postby researchtoxic » Fri Feb 02, 2007 10:45 pm

Does this not work with editors like JCE?
http://www.netentropy.com - Drupal, Joomla and whatever performance.


Return to “General Questions - 1.0.x”

Who is online

Users browsing this forum: No registered users and 7 guests