|
Graphics.UI.Gtk.SourceView.SourceLanguage | Portability | portable (depends on GHC) | Stability | provisional | Maintainer | gtk2hs-users@lists.sourceforge.net |
|
|
|
|
|
Description |
|
|
Synopsis |
|
|
|
|
Description
|
|
SourceLanguage encapsulates syntax and highlighting styles for a particular language. Use
SourceLanguageManager to obtain a SourceLanguage instance, and
sourceBufferSetLanguage to apply it to a SourceBuffer.
|
|
Types
|
|
|
Instances | |
|
|
|
| Instances | |
|
|
Methods
|
|
|
|
|
:: SourceLanguageClass sl | | => sl | | -> IO String | returns the ID of language. The returned string is owned by language and should not be freed or modified.
| Returns the ID of the language. The ID is not locale-dependent.
|
|
|
|
:: SourceLanguageClass sl | | => sl | | -> IO String | returns the name of language. The returned string is owned by language and should not be freed or modified.
| Returns the localized name of the language.
|
|
|
sourceLanguageGetSection | Source |
|
:: SourceLanguageClass sl | | => sl | | -> IO String | returns the section of language. The returned string is owned by language and should not be freed or modified.
| Returns the localized section of the language. Each language belong to a section (ex. HTML belogs to
the Markup section).
|
|
|
|
|
|
sourceLanguageGetMetadata | Source |
|
:: SourceLanguageClass sl | | => sl | | -> String | name metadata property name.
| -> IO String | returns value of property name stored in the metadata of language or empty if language doesn't contain that metadata
|
|
|
sourceLanguageGetMimeTypes | Source |
|
:: SourceLanguageClass sl | | => sl | | -> IO [String] | returns an array containing the mime types or empty if no mime types are found. The
| Returns the mime types associated to this language. This is just an utility wrapper around
'sourceLanguageGetMetadata ' to retrieve the mimetypes metadata property and split it into
an array.
|
|
|
|
:: SourceLanguageClass sl | | => sl | | -> IO [String] | returns an array containing the globs or empty if no globs are found.
| Returns the globs associated to this language. This is just an utility wrapper around
sourceLanguageGetMetadata to retrieve the globs metadata property and split it into an
array.
|
|
|
sourceLanguageGetStyleName | Source |
|
:: SourceLanguageClass sl | | => sl | | -> String | styleId a style ID
| -> IO String | returns the name of the style with ID styleId defined by this language or empty if the style has no name or there is no style with ID styleId defined by this language. The returned string is owned by the language and must not be modified.
| Returns the name of the style with ID styleId defined by this language.
|
|
|
sourceLanguageGetStyleIds | Source |
|
:: SourceLanguageClass sl | | => sl | | -> IO [String] | returns an array containing ids of the styles defined by this language or empty if no style is defined.
| Returns the ids of the styles defined by this language.
|
|
|
Attributes
|
|
|
Whether the language should be hidden from the user.
Default value: False
|
|
|
Language id.
Default value: ""
|
|
|
Language name.
Default value: ""
|
|
|
Language section.
Default value: ""
|
|
Produced by Haddock version 2.6.1 |