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 ...
  1. #1
    Linux User
    Join Date
    Jul 2007
    Location
    Greece
    Posts
    277

    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,568
    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" ..
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Linux User
    Join Date
    Jul 2007
    Location
    Greece
    Posts
    277
    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,562
    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
    Greece
    Posts
    277
    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
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    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
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  7. #7
    Linux User
    Join Date
    Jul 2007
    Location
    Greece
    Posts
    277
    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
  •  
...