-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|669|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Link Home -> Useful Apps


 
HoboBen
Created : 12 April 2008
 

GeSHi Generic Syntax Highlighter



https://qbnz.com/highlighter/index.php
Came across this - apparently it's what wikipedia use too!

"GeSHi is a syntax highlighter for HTML, written in PHP. Basically, you input the source you want to highlight and the name of the language you want to highlight it in, and GeSHi returns the syntax-highlighted result. But it doesn't stop there - GeSHi has many powerful and unique features..."

Seems easy to use, too

Supported Languages:
*Actionscript
*ADA
*Apache Log
*AppleScript
*ASM
*ASP
*AutoIT
*Backus-Naur form
*Bash
*BlitzBasic
*C
*C for Macs
*C#
*C++
*CAD DCL
*CadLisp
*CFDG
*CFDG
*ColdFusion
*CSS
*Delphi
*DIV
*DOS
*Eiffel
*Fortran
*Fortran
*FreeBasic
*GML
*Groovy
*HTML
*Inno
*IO
*Java
*Java 5
*Javascript
*LaTeX
*Lisp
*Lua
*Microprocessor ASM
*mIRC
*MySQL
*NSIS
*Objective C
*OCaml
*OpenOffice BASIC
*Oracle 8 SQL
*Pascal
*Perl
*PHP
*PL/SQL
*Python
*Q(uick)BASIC
*robots.txt
*Ruby
*SAS
*Scheme
*SDLBasic
*Smalltalk
*Smarty
*SQL
*T-SQL
*TCL
*thinBasic
*Uno IDL
*VB.NET
*Visual BASIC
*Visual Fox Pro
*Winbatch
*X++
*XML
*Z80 ASM

 

Comments


Saturday, 12 April 2008, 15:08
Jayenkai
Good stuff.

You won't be seeing it here, though. It sends out LOADS of extra data to do it. (View source)
Way more bandwidth.

A Javascript solution's the next best option.

Either way, it's still a total git to copy the sourcecode using the Ctrl-A, Ctrl-C method that a simple html text area allows for. And that's why we're still using those.
Sunday, 13 April 2008, 06:22
HoboBen
Oh yeah, I wasn't hinting you should use it here - your server would probably catch fire if someone posted a large snippet with a few people in the MUD

I still thought it was quite neat though, if you just need to post just the odd handful of lines.