Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Geany text editor commenting

Is there a way to highlight a section of code to be commented out in one swoop using geany text editor?

like image 488
Spencer Cooley Avatar asked Apr 13 '11 23:04

Spencer Cooley


People also ask

How do I comment in text editor in Ubuntu?

In Gedit: Go to Edit->Preference->Plugins and enable Code Comment. Ctl+m to comment block of codes. Ctl+Shift+m to uncomment block of codes.

Can geany run HTML?

Many supported filetypes including C, Java, PHP, HTML, Python, Perl, Pascal, and others. Symbol lists. Code navigation. Build system to compile and execute your code.

Why use Geany?

Geany is an open source cross platform text editor that is designed specifically for programmers thanks to its built-in support for over 50 programming languages. Just download Geany for Windows, Linux or Mac OS X to get started. Windows users need to install the application on their devices before it can be used.


2 Answers

Control-E to toggle commenting.

like image 119
ishmael Avatar answered Sep 28 '22 19:09

ishmael


Yes there is, you just have to highlight the code you want to comment then right-click, mouse over format and and click on "Comment Line(s)" to comment the lines. To uncomment,instead of selecting "Comment Line(s)" select "Uncomment Line(s)".

like image 44
CupOfTea Avatar answered Sep 28 '22 19:09

CupOfTea