IndenterT.indent

This function should be implemented to alter the indentation of text within the view.

view is provided so that the indenter may retrieve settings such as indentation and tab widths.

iter is the location where the indentation was requested. This typically is after having just inserted a newline (\n) character but can be other situations such as a manually requested indentation or reformatting.

See ifaceIndenter.is_trigger for how to trigger indentation on various characters inserted into the buffer.

The implementor of this function is expected to keep iter valid across calls to the function and should contain the location of the insert mark after calling this function.

The default implementation for this virtual function will copy the indentation of the previous line.

template IndenterT()
override
void
indent

Parameters

view gtksource.view.View

a #GtkSourceView

iter gtk.text_iter.TextIter

the location of the indentation request