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, released on the 19th of Aug, 2012.

Supported Languages:
*Apache Log
*APT sources.list
*ASM (m68k)
*ASM (pic16)
*ASM (x86)
*ASM (z80)
*Backus-Naur form
*C for Macs
*C++ (with QT)
*Diff File Format
*DOT language
*FourJ's Genero
*INI (Config Files)
*Java 5
*KLone C & C++
*Objective C
*OpenOffice BASIC
*Oracle 8 & 11 SQL
*Pixel Bender
*Progress (OpenEdge ABL)
*Ruby on Rails
*Uno IDL
*VIM Script
*Visual BASIC
*Visual Fox Pro
*Visual Prolog
*Windows Registry Files

GeSHi 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).
Mailing Lists
HomeNewsExamplesDemoDownloadsFAQDocumentationMailing ListsLicense 
1:57 pm GMT


Here you can give GeSHi the ultimate test drive: specify everything about how the outputted source should look. Use this demo to gain an idea of the great functionality that GeSHi provides.

Source Code Input via a text field:

OR via file upload1:

OR a URL online:
Choose a language
Line Numbers
Show line numbers beside your code
Wrap overflowing text
If you turn this option on, lines will be wrapped when they reach the width of the screen.
Tab width (in spaces)
Tabs in your input will be turned into this many spaces (maximum of 20)
Store Your File
If you choose this option, your source will be stored in the database so you do not have to upload it again to re-highlight it.2
Highlight inbuilt keywords, data types etc
If this option is chosen, keywords, inbuilt functions and data types etc. will be highlighted. Disable this for more speed, but less highlighting.
Strict Mode
Strict Mode means that if your language is a scripting language (such as PHP), then highlighting will only be done on the code between appropriate code delimiters (eg <?php, ?>)
Output Styles
Aspect Colour3 Bold Italic Case Sensitive
Default Colour
All the text not to be highlighted
if, while, do etc
Keywords II
null, void, true, false etc
Inbuilt Functions/Classes
Functions/classes predefined by your language: System, rand() etc
Data Types
Keywords that signal a data type: int, double, boolean etc
Comments in your language
Escaped Characters
Escaped characters in your language: \n, \t, \\ etc
Brackets: (, ), [, ], {, }
Strings: "hello!", 'hello, world!'
Literal numbers, including decimal numbers and powers (1, -1.2e6)
Methods and Data Fields
Methods and data fields for class languages
Configuration Complete  


  1. Maximum file upload size is 2 megabytes
  2. Your source will be stored for 7 days, then deleted. I don't look at or use any source uploaded, but if you want to be paranoid that's your tough luck ;)
  3. Selecting "Language Default" results in the default colour for a language being chosen. Good for natural looking highlighting, but no doubt you want to play anyway ;)
  4. Yes, comments can be case sensitive. In particular, in basic the word "REM" is a comment, and also comments are used to highlight metacommands/import statements in languages such as Java