Re: Use local lang file
- From: Thomas Dybdahl Ahle <lobais gmail com>
- To: Paolo Maggi <paolo maggi gmail com>
- Cc: gnome-devtools gnome org
- Subject: Re: Use local lang file
- Date: Sat, 06 Jan 2007 01:41:03 +0100
Oh, hadn't seen that one. Thanks.
I get an error when trying to set it though,
manager = SourceLanguagesManager()
manager.set_property("lang-files-dirs", "/home/thomas/Desktop")
TypeError: property 'lang-files-dirs' can only be set in constructor
...
l�6 01 2007 kl. 00:00 +0100, skrev Paolo Maggi:
> Hi,
> use the "lang-files-dirs" property of the language manager to tell
> gtksourceview where to search .lang files.
>
> Ciao,
> Paolo
>
> On Fri, 2007-01-05 at 20:04 +0100, Thomas Dybdahl Ahle wrote:
> > Hi, I'm writing a chessclient, and I'd like to have syntax highlighting
> > on pgn, which is a chess format.
> >
> > I've written a lang file, but I don't think the format is common enough
> > (for non chess players) to be included in gtksourceview. Rather I'd like
> > just to pack it with my application, and tell gtksourceview to use the
> > file instead of any /usr/share/gtksourceview-1.0/language-specs/ file.
> >
> > Is this possible? I haven't been able to find any methods on
> > http://www.pygtk.org/pygtksourceview/index.html (writing in python)
> >
>
--
Med venlig hilsen,
Best regards,
Thomas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]