Mark.this

Creates a text mark.

Add it to a buffer using gtk.text_buffer.TextBuffer.addMark. If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved by name using gtk.text_buffer.TextBuffer.getMark. Normally marks are created using the utility function gtksource.buffer.Buffer.createSourceMark.

class Mark
this
(
string name
,
string category
)

Parameters

name string

Name of the #GtkSourceMark or null

category string

is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).

Return Value

a new #GtkSourceMark that can be added using gtk.text_buffer.TextBuffer.addMark.