Navigation
Home News Examples Demo Downloads FAQ Documentation Mailing Lists License
Project Status
The latest stable version of GeSHi is 1.0.8.2, released on the 25th of December, 2008.

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.2 is the current stable release, with ten new languages and bug fixes over the last release.

GeSHi 1.1.2alpha3 is the current latest version from the development branch, with full C support (see the GeSHi development website).
Help GeSHi out!
If you're using GeSHi, why not help GeSHi out? You can link to GeSHi with this image:
Powered by GeSHi
Get the HTML

Subscribe
RSS 2
Mailing Lists
Freshmeat
Project Record
Vitality: 4477.47
Popularity: 1813.26
Rating: 8.42
Subscriptions: 74
HomeNewsExamplesDemoDownloadsFAQDocumentationMailing ListsLicense 
9:02 am GMT

Demo Results

Here is the highlighted version of your file. If there are any problems with the highlighted version, check you're using the right language, and that your syntax is correct. If there still is a problem, mail a bug report to BenBE@geshi.org.

GeSHi © 2004-2007 Nigel McNie, 2007-2008 Benny Baumann, 2008 Milian Wolff
  1. #!/bin/bash
  2.  
  3. sizes=`cat <<- SIZ
  4.           312500
  5.           625000
  6.          1250000
  7.          2500000
  8.          5000000
  9.         10000000
  10.         20000000
  11. SIZ`;
  12.  
  13. CHAR_MODEL=7;
  14. WORD_MODEL=3;
  15. N=$WORD_MODEL;
  16.  
  17. fileTrain="/tmp/$$.train";
  18. fileHeldout="/tmp/$$.heldout";
  19. fileOut="/tmp/$$.out";
  20. fileBugs="/tmp/$$.bugs";
  21. fileCorrect="/tmp/$$.correct";
  22.  
  23. if [ x$1 == x ]; then
  24.         echo "Usage: ./task.sh [0-4]";
  25.         exit;
  26. fi;
  27.  
  28. cc charDiff.c -o charDiff
  29.  
  30.  
  31. case $1 in
  32.         1)
  33.                 N=$WORD_MODEL;
  34.                 scr='cat';
  35.                 ;;
  36.         2)
  37.                 N=$WORD_MODEL;
  38.                 scr="./toLower.pl";
  39.                 ;;
  40.         3)
  41.                 N=$CHAR_MODEL;
  42.                 scr="./makeCharVerticalFile";
  43.                 ;;
  44.         4)
  45.                 N=$CHAR_MODEL;
  46.                 scr="./makeCharVerticalFile | ./toLower.pl"
  47.                 ;;
  48.         *)
  49.                 echo "Usage: ./task.sh [0-4]";
  50.                 exit;
  51. esac;
  52.  
  53. echo "Mode: " $1
  54. echo "  Filter: " $scr
  55.  
  56.  
  57. cat words.correct | eval $scr > $fileCorrect;
  58. cat words.bugs | eval $scr > $fileBugs;
  59.  
  60. for s in $sizes; do
  61.         h=`expr $s / 20`;
  62.  
  63.         head -n $s words.train | eval $scr > $fileTrain
  64.         head -n $h words.heldout | eval $scr > $fileHeldout
  65.  
  66.         echo "Training size: " $s;
  67.  
  68.         for i in `seq 1 $N`; do
  69.                 run="./correct.pl $fileTrain $fileHeldout $i $fileBugs"
  70. #               echo $run;
  71.  
  72.                 echo -n `date +"%Y-%m-%d %H:%M:%S"`;
  73.                 echo -n "       n: " $i ": ";
  74.                 eval $run > $fileOut;
  75.  
  76.                 ./charDiff $fileOut $fileCorrect;
  77.         done;
  78.  
  79. done;
  80.  
  81. rm -rf /tmp/$$.*
  82.  
  83.  
Parsed in 0.308 seconds at 4.16 KB/s

Statistics

Language used: bash
StatisticYour sourceAverage for bash
Characters in source:1311 (13488 in highlighted result)1182.487
Total time highlighting:0.393 seconds0.120 seconds
Characters per second:3332.317 chars per second0.000/8895.838/181115.914 chars per second


Back to enter source