gtksourceview



Hi,

anyone know if you can create a new language for syntax highlighting in gtksourceview on the fly? As in, without putting the xml in a certain place on disk, but from code instead?

in the example, we have ...

language = gtk_source_languages_manager_get_language_from_mime_type (manager,
                                            mime_type);

can i not do something along the lines of ...

language = gtk_source_languages_manager_get_language_from_file (manager,
                                            gchar * path);

I want to use my own syntax highlighting scheme for an obscure language you see.

Thanks in advance for any help.

E^r7hW( )rm




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]