It is currently Thu Aug 28, 2008 8:17 pm

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.

what is GESHI?

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

I found this one in mambots, what can I do with it?
User avatar
consigliere
Joomla! Explorer
Joomla! Explorer
 
Posts: 340
Joined: Fri Sep 02, 2005 10:23 pm
Location: Mazatlan, Sinaloa, Mexico

Re: what is GESHI?

Postby t3.6k on 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

osCommerce Bridge: www.seismicos.com
User avatar
t3.6k
Joomla! Enthusiast
Joomla! Enthusiast
 
Posts: 183
Joined: Sat Aug 20, 2005 5:15 pm
Location: Fruitport, MI

Re: what is GESHI?

Postby nathandiehl on 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
User avatar
nathandiehl
Joomla! Champion
Joomla! Champion
 
Posts: 5557
Joined: Fri Aug 19, 2005 3:03 pm
Location: Indiana, USA

Re: what is GESHI?

Postby emagin on 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
emagin
Joomla! Intern
Joomla! Intern
 
Posts: 97
Joined: Sun Sep 11, 2005 7:46 pm
Location: san francisco, ca usa

Re: what is GESHI?

Postby Nic on 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/
[ Joomla! StatsCleaner - a free tool to reset ALL Joomla! stats - http://www.nab-design.de/devcorner/ ]
User avatar
Nic
Joomla! Guru
Joomla! Guru
 
Posts: 618
Joined: Fri Aug 19, 2005 3:36 pm

Re: what is GESHI?

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

I think it changes code in a pre tag to pretty colors
Joomla tutorials and templates
www.compassdesigns.net
Joomla! 1.5 - A User's Guide: Building a Successful Joomla! Powered Website
www.joomlabook.com
User avatar
compass
Joomla! Ace
Joomla! Ace
 
Posts: 1295
Joined: Fri Aug 26, 2005 1:31 am

Re: what is GESHI?

Postby DeanMarshall on 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 - Mambo and Joomla Consultant
Dean Marshall Consultancy Limited - http://www.deanmarshall.co.uk/
User avatar
DeanMarshall
Joomla! Ace
Joomla! Ace
 
Posts: 1753
Joined: Fri Aug 19, 2005 2:26 am
Location: Lancaster, Lancashire, United Kingdom

Re: what is GESHI?

Postby emagin on 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
User avatar
emagin
Joomla! Intern
Joomla! Intern
 
Posts: 97
Joined: Sun Sep 11, 2005 7:46 pm
Location: san francisco, ca usa

Re: what is GESHI?

Postby eddyyanto on 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?  :)
+ what's great about open-source? kindness of sharing
+ http://www.eddyyanto.com
User avatar
eddyyanto
Joomla! Guru
Joomla! Guru
 
Posts: 903
Joined: Tue Jan 17, 2006 7:42 am

Re: what is GESHI?

Postby emagin on 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
emagin
Joomla! Intern
Joomla! Intern
 
Posts: 97
Joined: Sun Sep 11, 2005 7:46 pm
Location: san francisco, ca usa

Re: what is GESHI?

Postby Nic on 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.
[ Joomla! StatsCleaner - a free tool to reset ALL Joomla! stats - http://www.nab-design.de/devcorner/ ]
User avatar
Nic
Joomla! Guru
Joomla! Guru
 
Posts: 618
Joined: Fri Aug 19, 2005 3:36 pm

Re: what is GESHI?

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

Does this not work with editors like JCE?
User avatar
researchtoxic
Joomla! Guru
Joomla! Guru
 
Posts: 986
Joined: Fri Mar 03, 2006 3:52 pm
Location: Macon, GA


Return to General Questions - 1.0.x

Who is online

Users browsing this forum: b_kkn, bhcrow, markie37, pe7er and 11 guests