News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP-GTK Community Site:
Using GtkSourceview to build a php editor with syntax highlighting
December 19, 2006 @ 08:34:00

There's a new tutorial posted on the PHP-GTK Community site today - a quick one showing how to use GtkSourceview to create a simple PHP editor with syntax highlighting.

This widget is nearly usable as a real php-gtk IDE. It extends GtkSourceView widget and internally manages both a text buffer and language object classes.

They provide the code, but not too much in the way of explanation for it. Thankfully, most of it is pretty straight-forward. There are a few things that the script has to manage to make the it work - a text buffer for the data, a viewer (window), and the syntax highlighting component. For the view, there are a few handy functions already built in so you won't have to create them - undos, the syntax highlighting, line numbering, markers, and bracket highlighting.

0 comments voice your opinion now!
gtksourceview editor syntax highlight undo marker bracket gtksourceview editor syntax highlight undo marker bracket


blog comments powered by Disqus

Similar Posts

PHP-GTK Community Site: Anubis (a PHP-GTK RAD/IDE Tool)

Ian Selby's Blog: Working With the Aptana PHP Editor (Screencast)

PHP 10.0 Blog: syntax I miss in PHP

Jason Houle's Blog: Zend Framework: The Dijit Editor

PHP-GTK Community Site: Using GtkSourceview to build a php editor with syntax highlighting


Community Events











Don't see your event here?
Let us know!


hhvm unittest security code facebook install introduction symfony2 podcast component database package composer language performance hack release application framework threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework