Skip to content

Draft: gtktextview: add show-ignorables property

gwillems requested to merge g.willems/gtk:textview_show_ignorables into main

This property allows to show invisible control glyphs by default, if enabled. It relies on the PANGO_SHOW_IGNORABLES flag of Pango (see https://docs.gtk.org/Pango/flags.ShowFlags.html )

This is an attempt to mitigate "trojan source" type of vulnerabilities, when using a GtkTextView for editing source code, allowing developers to visually spot unexpected symbols.

The setting can typically be enabled by source code editors based on GtkSourceView.

Some samples of problematic source code can be found here: https://github.com/nickboucher/trojan-source

See also Visual Studio Code changelog for more background info about the issue: https://code.visualstudio.com/updates/v1_63#_unicode-highlighting

Merge request reports