Property

IdeBuffer:newline-type

Declaration

property newline-type: GtkSource.NewlineType [ read, write ]

Description

Sets the style of newline to append to each line.

This sets the style of newlines to use within the file. Generally, only LF should be used (\n) as it is common on Unix, Linux, and most editors at this point.

Older Windows editors might prefer CR+LF (\r\n) which is similar to what is displayed in a raw terminal without a \n line discipline.

Really old Mac Classic systems use just a \r.

Default valueGTK_SOURCE_NEWLINE_TYPE_LF
Getter methodide_buffer_get_newline_type()
Setter methodide_buffer_set_newline_type()

Flags

Readableyes
Writableyes
Constructno
Construct onlyno