LanguageManager.setSearchPath

Sets the list of directories where the lm looks for language files.

If dirs is null, the search path is reset to default.

At the moment this function can be called only before the language files are loaded for the first time. In practice to set a custom search path for a gtksource.language_manager.LanguageManager, you have to call this function right after creating it.

Since GtkSourceView 5.4 this function will allow you to provide paths in the form of "resource:///" URIs to embedded gio.resource.Resources. They must contain the path of a directory within the gio.resource.Resource.

class LanguageManager
void
setSearchPath
(
string[] dirs = null
)

Parameters

dirs string[]

a null-terminated array of strings or null.