After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 616393 - Python tabs/spaces/long lines visual warnings
Python tabs/spaces/long lines visual warnings
Status: RESOLVED NOTABUG
Product: gtksourceview
Classification: Platform
Component: Syntax files
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2010-04-21 12:31 UTC by Adi Roiban
Modified: 2010-04-21 13:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Adi Roiban 2010-04-21 12:31:37 UTC
Hi,

While using Gedit for writing Python codes I needed to have a visual feedback for leading tabs, trailing spaces and long lines.

A screenshot of the result is here:
http://adi.roiban.ro/wp-content/uploads/2010/04/highlight.png

I am not sure if you want this changes for all users, but I was thinking that it is worth letting you know :)

Right now the code is here:
https://code.edge.launchpad.net/~adiroiban/+junk/gtksourceview-highlighting

Cheers,
Comment 1 Ignacio Casal Quinteiro (nacho) 2010-04-21 13:07:02 UTC
gtksourceview already provides api for this. See:
http://library.gnome.org/devel/gtksourceview/stable/GtkSourceView.html#gtk-source-view-set-draw-spaces

In gedit is provided with the gedit-plugins module a plugin to manage this in case you are interested.