« Return to Thread: "turn on" GtkSourceView feature

Re: "turn on" GtkSourceView feature

by kksou :: Rate this Message:

Reply to Author | View in Thread

Some additional notes for linux users...

1. Assuming you have gtk+ 2.x in place, download 2 more packages. Compile libgnomeprint first, then gtksourceview.
a) libgnomeprint-2.12.1
http://www.linuxfromscratch.org/blfs/view/cvs/gnome/libgnomeprint.html

b) gtksourceview-1.6.0
http://gtksourceview.sourceforge.net/

2. Remove the previously compiled php_gtk2.so
rm /usr/local/php-5.1.6/lib/php/extensions/no-debug-non-zts-20050922/php_gtk2.so
Note: if you don't remove this, you will get an error when running ./configure

3. Recompile php-gtk2
Note: remember to add the switch "--enable-sourceview"
./configure --prefix=/usr/local/php-gtk-2.0.0 --enable-sourceview --with-php-config=/usr/local/php-5.1.6/bin/php-config
make
make install

If you use the default configure, the language-specs will be stored in
/usr/local/share/gtksourceview-1.0/language-specs

Additional notes in:
http://www.kksou.com/php-gtk2/articles/install-php-gtk2-on-linux.php

Regards,
/kksou

Sample output:
http://www.kksou.com/php-gtk2/gif/gtksourceview_linux.gif

p.s. linux uses the latest version of gtksourceview (v1.6), whereas the sourceview.dll that comes bundled with Gnope Installer is v1.4. If you have played with the windows version, it is somewhat buggy. Initial display of syntax highlighting is ok. But as you type in more text, sometimes syntax highlighting just stop working.

Would be great if anyone could point us to an updated win32 binary of gtksourceview-1.6.0.

 « Return to Thread: "turn on" GtkSourceView feature