Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Text editing - insert comments (#) in Ubuntu with gedit or other text editor

Tags:

text

edit

gedit

I am programming in a dedicated language called macro language.

To comment I need to add # at the beginning of the line.

What I want is, in order to spare time, to comment several lines of code at same time with gedit or other program (gedit is nice in terms of the colors, which make the code more readable).

How can I do it?

Thank you in advance.

like image 994
André Miguel Monteiro Avatar asked Jan 08 '15 10:01

André Miguel Monteiro


1 Answers

Possibly need # apt-get install gedit-plugins.

Then go to edit > preferences > plugins > enable "code comment".

Then use ctrl-m to comment and ctrl-shift-m to uncomment.

(Technically, I think this would go in SuperUser though.)

like image 149
David X Avatar answered Sep 28 '22 18:09

David X