|
|
HomeNewsExamplesDemoDownloadsFAQDocumentationMailing ListsLicense
|
3:49 am GMT
GeSHi - Generic Syntax Highlighter
Welcome to the home of the Generic Syntax Highlighter - GeSHi. GeSHi started as an idea to create a generic syntax highlighter for the phpBB forum system, but has been generalised to this project. GeSHi aims to be a simple but powerful highlighting class, with the following goals:
- Support for a wide range of popular languages
- Easy to add a new language for highlighting
- Highly customisable output formats
GeSHi aims to do this all as quickly as possible. Many customisable features of GeSHi facilitate speed increases, and you can easily find a balance between the amount of highlighting done and the speed in which it is done.
GeSHi supports PHP5 and Windows, and has even been used to highlight code on ASP pages. Numerous blogs, wikis and forums use GeSHi, including Dokuwiki, Mambo, phpBB and WikkaWiki.
GeSHi is an award winning piece of software - so you know you're using a top quality product.
Latest News
2017/05/13
In parallel to the previous release, I'm happy to provide you this release of GeSHi which is the first one targeting PHP7. I has NO new languages as those were all bundled with the previous release already.
This release includes only bugfixes for proper support of PHP 7. Although it likely runs on PHP 5 there will be no support to PHP versions prior to PHP 7. Some more details can be found in the changelog.
As already noted previously there's still the problem with PCRE not working properly with some large sources: As I'm not a developer of PCRE, but a mere user I ask you to report issues with PCRE crashes upstream to them, not me.
More information on current GeSHi developement can be found in the GeSHi corner of my blog.
Download from the usual place, bug reports to the sf.net tracker please etc. etc...
BenBE.
2017/05/13
After even more has passed I'm happy to finally announce this new release of GeSHi with loads of new languages, some minor parser tweaks and fixes to existing language files. It adds 14 more languages thus making a total of 251 supported languages.
This release includes two minor bugfixes. It is also the last version to be compatible with PHP 4 and support for PHP 5. Some more details can be found in the changelog.
As already noted previously there's still a problem with PCRE not working properly with some large sources: As I'm not a developer of PCRE, but a mere user I ask you to report issues with PCRE crashes upstream to them, not me.
More information on current GeSHi developement can be found in the GeSHi corner of my blog.
Download from the usual place, bug reports to the sf.net tracker please etc. etc...
BenBE.
2014/11/03
Again quite some time has passed but here it is: the new release of GeSHi with loads of new languages, some minor parser tweaks and fixes to existing language files. It adds 18 more languages thus making a total of 237 supported languages.
This release includes two minor bugfixes for the contrib scripts shipped with GeSHi which allowed for Cross-Site Scripting. Thus if you have the contrib scripts installed it is strongly advised to update ASAP. Some more details can be found in the changelog.
As already noted previously there's still a problem with PCRE not working properly with some large sources: As I'm not a developer of PCRE, but a mere user I ask you to report issues with PCRE crashes upstream to them, not me.
More information on current GeSHi developement can be found in the GeSHi corner of my blog.
Download from the usual place, bug reports to the sf.net tracker please etc. etc...
BenBE.
2013/11/16
Since this week GeSHi has migrated to use Git for version control of the source code. Parallel to this move the source code hosting has moved away from SourceForge to GitHub Thus the old code at SourceForge is there only for historical reasons and will no longer be updated.
You can find more details on this change in my blog.
2012/11/25
I recently decided to make the GeSHi website available via SSL as a related project requires use of SSL anyway. Currently I'm not yet forcing SSL, but if you connected successfully via SSL once you'll use it automatically for the next six months due to HSTS.
The reason I'm currently not enforcing is that as the used Certification Authority CAcert is not in the trusted store of Mozilla and Internet Explorer (although the second is not relevant to me) you'd probably get alot of confusing warnings. Thus as of now you should make a conscious choice to use the encrypted version of this website. If you do and you get an error "Issuer not trusted" please check the Certificate or verify the Root Certificate of CAcert is installed properly.
This change is available for qbnz.com and geshi.org.
News Archive
|
Random Screenshot
Demonstration
Runtime Example
Do
DoEvents
Form1.SetFocus
PSet (Snakex, Snakey), vbGreen
Line (applex - 3, appley - 5)-(applex + 3, appley), vbGreen + 1, BF
Line (applex, appley)-(applex + 10, appley + 10), applecolor, BF
For i = 1 To delay: Next
Snakex = Snakex + SnakexMov
Snakey = Snakey + SnakeyMov
colortest = Point(Snakex + SnakexMov, Snakey + SnakeyMov)
If colortest = vbGreen + 1 Or colortest = applecolor Then
Line (applex - 3, appley - 5)-(applex + 10, appley + 10), vbWhite, BF
'Line (10, 10)-(750, 750), vbWhite, BF
score = score + 10
delay = delay - 10000
If score > 30 And score < 60 Then delay = delay + 5000
If score > 60 Then delay = delay + 7500
applex = Int(600 * Rnd) + 10
appley = Int(600 * Rnd) + 10
ElseIf colortest <> vbWhite Then
Label1.Left = 250
Label1.ForeColor = vbBlack
Label1.BackColor = vbWhite
Label1.Caption = " You Lose " & Chr(10) & " Your Score was: " & score & "" & Chr(10) & "Press 'Enter' to play again and 'Esc' to exit"
Label1.AutoSize = True
Exit Do
Exit Sub
End
End If
Loop
|
|