SpaceDrawer provides a way to visualize white spaces, by drawing symbols.
Call [[email protected]_space_drawer] to get the `GtkSourceSpaceDrawer` instance of a certain [class@View].
By default, no white spaces are drawn because the [property@SpaceDrawer:enable-matrix] is false.
To draw white spaces, [[email protected]_types_for_locations] can be called to set the [property@SpaceDrawer:matrix] property (by
default all space types are enabled at all locations). Then call [[email protected]_enable_matrix].
For a finer-grained method, there is also the [class@Tag]'s [property@Tag:draw-spaces] property.
Example
To draw non-breaking spaces everywhere and draw all types of trailing spaces except newlines: ```c
gtk_source_space_drawer_set_types_for_locations (space_drawer, GTK_SOURCE_SPACE_LOCATION_ALL, GTK_SOURCE_SPACE_TYPE_NBSP);