Find the answer to your Linux question:
Results 1 to 7 of 7
I have recently discovered Gedit. I think it's one of the best text editors out there. The only think that I'm missing is commenting out a piece of code. It ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Jul 2007
    Location
    Kronos
    Posts
    286

    Commeting out using Gedit


    I have recently discovered Gedit.
    I think it's one of the best text editors out there. The only think that I'm missing is commenting out a piece of code. It doesn't seem to have such an option.

    Any suggestions please?

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,740
    I'm also huge fan of Gedit... But i can't get your question..commmenting out code?
    It has language preference setting...in those menu ..but i don't understand what you refer here as "commenting out code" ..
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Linux User
    Join Date
    Jul 2007
    Location
    Kronos
    Posts
    286
    Hey Lakshmipathi

    You know for example when you write a Perl script in Gedit and you comment out a single line with the
    Code:
    #
    symbol. I can't see any options to comment out more than one line.

  4. #4
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,628
    Quote Originally Posted by goude View Post
    I can't see any options to comment out more than one line.
    As I've never had to comment out more than just a few lines, I was unaware any editor had such an option. Which ones have this?
    Linux Mint + IceWM Registered:#371367 New Members: click here

  5. #5
    Linux User
    Join Date
    Jul 2007
    Location
    Kronos
    Posts
    286
    For example in nedit you can highlight a block of lines and then go to Macro-->Comments--> Comment or Uncomment
    and it comments out all the lines without having to do it for each line seperately.

  6. #6
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,315
    The package gedit-plugins contains various add ons for gedit including code comment. For more useful plugins have a look at this.

    You can enable plugins from the gedit preferences menu option
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

  7. #7
    Linux User
    Join Date
    Jul 2007
    Location
    Kronos
    Posts
    286
    Thanks a lot Elija

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •