Navigation
Home News Examples Demo Downloads FAQ Documentation Mailing Lists License
Support GeSHi!
If you're using GeSHi, why not help GeSHi out? You can link to GeSHi with this image:
Powered by GeSHi
Get the HTML

Project Status
The latest stable version of GeSHi is 1.0.8.11, released on the 19th of Aug, 2012.

Supported Languages:
*ABAP
*Actionscript
*ADA
*Apache Log
*AppleScript
*APT sources.list
*ASM (m68k)
*ASM (pic16)
*ASM (x86)
*ASM (z80)
*ASP
*AutoIT
*Backus-Naur form
*Bash
*Basic4GL
*BlitzBasic
*Brainfuck
*C
*C for Macs
*C#
*C++
*C++ (with QT)
*CAD DCL
*CadLisp
*CFDG
*CIL / MSIL
*COBOL
*ColdFusion
*CSS
*D
*Delphi
*Diff File Format
*DIV
*DOS
*DOT language
*Eiffel
*Fortran
*FourJ's Genero
*FreeBasic
*GetText
*glSlang
*GML
*gnuplot
*Groovy
*Haskell
*HQ9+
*HTML
*INI (Config Files)
*Inno
*INTERCAL
*IO
*Java
*Java 5
*Javascript
*KiXtart
*KLone C & C++
*LaTeX
*Lisp
*LOLcode
*LotusScript
*LScript
*Lua
*Make
*mIRC
*MXML
*MySQL
*NSIS
*Objective C
*OCaml
*OpenOffice BASIC
*Oracle 8 & 11 SQL
*Pascal
*Perl
*PHP
*Pixel Bender
*PL/SQL
*POV-Ray
*PowerShell
*Progress (OpenEdge ABL)
*Prolog
*ProvideX
*Python
*Q(uick)BASIC
*robots.txt
*Ruby
*Ruby on Rails
*SAS
*Scala
*Scheme
*Scilab
*SDLBasic
*Smalltalk
*Smarty
*SQL
*T-SQL
*TCL
*thinBasic
*TypoScript
*Uno IDL
*VB.NET
*Verilog
*VHDL
*VIM Script
*Visual BASIC
*Visual Fox Pro
*Visual Prolog
*Whitespace
*Winbatch
*Windows Registry Files
*X++
*XML
*Xorg.conf

GeSHi 1.0.8.11 is the current stable release, with eighteen new languages and bug fixes over the last release.

GeSHi 1.1.2alpha5 is the current latest version from the development branch, with full C support (see the GeSHi development website).
Subscribe
RSS 2
Mailing Lists
HomeNewsExamplesDemoDownloadsFAQDocumentationMailing ListsLicense 
9:45 am GMT

GeSHi News

Here's where you can find out all the latest news about GeSHi - new releases, bug fixes and general errata.

Engine of 1.2.X Largely Finished
05/01/2005
A happy new year to all of you who use GeSHi :). Though while I might have been slacking around, I have instead been working on GeSHi 1.2.X, and I now have a progress report for you all :).

The GeSHi 1.2.X engine is largely completed now, with an approximate tripling of speed, sometimes better, for simple sources. But the best gains have been in the following areas:

1) Much better highlighting: You thought it was good before? Think again! The new engine handles any source code far better than ever before. And due to the way everything is set up, it is now easy to have multiple languages embedded in one source highlighting - for example PHP within HTML - and each language is highlightedd correctly. Furthermore, it handles such things as ?> enders in // comments for PHP much better. Here's a demo of what I mean.

Firstly, this is a file that I use for testing highlighted with GeSHi 1.0.4, using standard (non-strict) mode: here.

That's sorta bad, eh? For one thing, the <?php never seems to be highlighted, and it doesn't catch that the last single-line comment before the main block of HTML has a close-PHP (?>) in it that should stop highlighting of the single comment. Now here's the equivilant using the new parser. Strict mode off, and no attempt to highlight the HTML for starters: here.

Now that looks sorta bad as well, but that's because the source that we're giving it to highlight is not exactly pure PHP. At least it caught the ?> trick, and were you noticing the time? Twice as fast!

Here's another go at the same page. This time, we will use strict mode, and things should be much better. Here it is using GeSHi 1.0.4: here.

Well quite simply, that's poor. It seemed to bail out around the multiline comment with ?> in it, and hardly did any highlighting at all, not to mention move the doctype declaration down a line without us asking. How about the new parser? here...

Well how about that? Twice as fast, *and* highlighted everything correctly!

Now let's try the page, but now we'll use the new parser and full PHP-with-HTML-embedded parsing: here...

Are you drooling yet? ;). The CSS is highlighted, javascript inside HTML strings is highlighted - and all at the same speed as the best the old parser could do (which, if you recall, highlighted less than half the source correctly!)

Here's another set of examples, using the source from a well known open-source project:

Old parser, non-strict
New parser, non-strict
Old parser, strict
New parser, strict
New parser, full

Note the improved times and improved highlighting!