|
Graphics.UI.Gtk.SourceView.SourceLanguageManager | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
|
|
Synopsis |
|
|
|
|
Description
|
|
SourceLanguageManager is an object which processes language description files and creates and
stores SourceLanguage objects, and provides API to access them. Use
sourceLanguageManagerGetDefault to retrieve the default instance of
SourceLanguageManager, and sourceLanguageManagerGuessLanguage to get a
SourceLanguage for given file name and content type.
|
|
Types
|
|
data SourceLanguageManager | Source |
|
Instances | |
|
|
|
| Instances | |
|
|
Methods
|
|
|
|
|
Creates a new language manager. If you do not need more than one language manager or a private
language manager instance then use sourceLanguageManagerGetDefault instead.
|
|
|
Returns the default SourceLanguageManager instance.
|
|
|
Sets the list of directories where the lm looks for language files. If dirs is Nothing, the search path
is reset to default.
Note
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 SourceLanguageManager, you have to call this
function right after creating it.
|
|
|
Gets the list directories where lm looks for language files.
|
|
|
Returns the ids of the available languages.
|
|
sourceLanguageManagerGetLanguage | Source |
|
|
|
sourceLanguageManagerGuessLanguage | Source |
|
|
|
Attributes
|
|
|
List of the ids of the available languages.
|
|
|
List of directories where the language specification files (.lang) are located.
|
|
Produced by Haddock version 2.6.1 |