Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Option to display control characters in gedit

Tags:

linux

gedit

I'm a newbie to Linux. Is there a way to see the control characters in gedit. I went to options->preferences and all I got is option to see the line numbers of the text file. Is there any plugin that needs to be installed to see the same? I'm on Ubuntu 12.04 LTS and the gedit version is 3.4.1.

like image 935
Santhosh Pai Avatar asked Jun 18 '13 07:06

Santhosh Pai


People also ask

How do I add plugins to gedit?

local/share/gedit/plugins directory. Of course, replace the word username with your own username. After you have placed the plugin files into the correct directory, the plugin will appear in the Preferences menu. Select Edit ▸ Preferences ▸ Plugins ▸ [Name of Plugin] to enable the plugin.

How do I open terminal in gedit?

Use Ctrl + F9 to open terminal (with default gedit color scheme).


2 Answers

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

like image 163
Rob Avatar answered Sep 27 '22 18:09

Rob


As said in the other answer you need to install the Draw-Spaces plugin in gedit. Once there, I must say, the plugin options are confusing because the word "space" is used with two different meanings, as separation character (including tab) or as a proper space.

For most applications you need these options. These specific combinations will show leading and trailing proper spaces but not show tabs. This way you can, for example, tell if indentation was not done with tabs.

drawspaceswindow

like image 31
alfC Avatar answered Sep 25 '22 18:09

alfC