Option to Display Control Characters in Gedit

Option to display control characters in gedit

There is a gedit-plugins package available for Ubuntu. Install that and take a look at the Draw Spaces section in the gedit preferences. You can configure it to show spaces, tabs, line feeds etc.

You can use this command in a terminal: sudo apt-get install gedit-plugins

View newline and tab chars in Linux text editor

For Python 'SPE' or 'ERIC3' are great.

I know for sure that SPE supports highlighting whitespace.
Probable ERIC3 as well.

Also you can let the editors save without trailing spaces.

'kate' supports highlighting whitespace as well as tabs and can also remove trailing spaces and/or highlight them.

At the moment I'm using 'KDevelop' because it supports vertical selection which is very usefull at times.

Column Mode in gedit?

I'm not sure if this helps. The GNOME page on the subject is down. Quite a lot of people seem to be looking for that exact feature. One guy is doing this plug-in; try it perhaps it helps: http://jon-walsh.com/journal/multi-edit/

Other thoughts on the subject are here: http://brainstorm.ubuntu.com/idea/17656/. This is supposed to be an unfinished plug-in for what you're looking for, but as I said, the page appears to be down. http://live.gnome.org/Gedit/Plugins/ColumnMode

gedit broken shortcut keys, has mod2

I'm going to answer my question. I have solved it after hours of trial and error.

I was connecting to my Linux machine running gedit using Synergy. So I jsut transfered the keyboard to the USB port running the linux machine and then reconfigured the Shortcut Editor Plugin for gedit.

The shortcuts are now properly set by the plugin.

Increase number recently opened file list in gedit (gnome)

The configuration setting is in /schemas/apps/gedit-2/preferences/ui/recents/max_recents according to http://people.gnome.org/~bmsmith/gconf-docs/C/gedit.html.

According to OP the setting can successfully be changed by issuing the command gconftool-2 --type int --set /apps/gedit-2/preferences/ui/recents/max_recents 10 (Notice: /schemas is removed!)

How to remove all special characters in Linux text

Remove everything except the printable characters (character class [:print:]), with sed:

sed $'s/[^[:print:]\t]//g' file.txt

[:print:] includes:

  • [:alnum:] (alpha-numerics)
  • [:punct:] (punctuations)
  • space

The ANSI C quoting ($'') is used for interpreting \t as literal tab inside $'' (in bash and alike).



Related Topics



Leave a reply



Submit