Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Toggle comments in gEdit

  1. #1
    Join Date
    Dec 2007
    Beans
    7

    Toggle comments in gEdit

    Is there a (language specific) way to toggle comments in gEdit, like Ctrl + k and Ctrl + Shift + k in Notepad++.

    Thanks!

  2. #2
    Join Date
    Jan 2008
    Beans
    4,757

    Re: Toggle comments in gEdit

    What do you mean when you say toggle comments?

    Could you post a screenshot, perhaps, of it in action?

    Regards
    Iain

  3. #3
    Join Date
    Dec 2006
    Location
    Hamburg, Germany
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Toggle comments in gEdit

    I am not aware of this feature in gedit, but it can be set in emacs which is much more powerful for coding anyways.
    One ought, every day at least, to hear a little song, read a good poem, see a fine picture, and, if it were possible, speak a few reasonable words...

  4. #4
    Join Date
    Dec 2007
    Beans
    7

    Re: Toggle comments in gEdit

    Before, the text looks like this -



    After Ctrl + K (the lines were selected) the text gets commented -



    This is from Notepad++ in Windows. It's a feature that I constantly use. If Gimp does not have this, then does it allow vertical selection?
    Attached Images Attached Images

  5. #5
    Join Date
    Dec 2006
    Location
    Hamburg, Germany
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Toggle comments in gEdit

    Quote Originally Posted by shashank_hi View Post
    If Gimp does not have this, then does it allow vertical selection?
    We're still talking about an editor right (Gimp?)?

    --> use emacs.
    One ought, every day at least, to hear a little song, read a good poem, see a fine picture, and, if it were possible, speak a few reasonable words...

  6. #6
    Join Date
    Jan 2008
    Beans
    4,757

    Re: Toggle comments in gEdit

    Ah, I get you.
    No, I don't think this feature is part of GEdit.

    Wouldn't it be better to use an IDE more suited.
    Geany is a good one.
    apt://geany

    To switch between comment on/off in it, just highlight and press Ctrl+E

    Regards
    Iain

    [EDIT]
    Action shot:


    Attached Images Attached Images
    Last edited by ibuclaw; August 5th, 2008 at 12:17 AM.

  7. #7
    Join Date
    Dec 2007
    Beans
    7

    Re: Toggle comments in gEdit

    Thanks for both your replies. I was trying to avoid emacs because it's got a steep learning curve, and I'm not a power user. Nonetheless, I've heard pretty good things about it.

    Geany looks more like my cup of tea. I played around with it and liked it a lot. Definitely keeping it.

  8. #8
    Join Date
    Dec 2007
    Beans
    7

    Re: Toggle comments in gEdit

    Sorry, I meant gedit there.

  9. #9
    Join Date
    Jan 2008
    Beans
    4,757

    Re: Toggle comments in gEdit

    Haha, Emacs, steep learning curve? bah, nonsense

    Vim is my editor of choice, I use it for everything and nothing else

    Regards
    Iain

  10. #10
    Join Date
    May 2010
    Beans
    3

    Re: Toggle comments in gEdit

    @shashank_hi: There are a number of options (atleast 3 that I know of):

    1. Code comment in the gedit-plugins package available in the universe package:
      https://launchpad.net/ubuntu/+source/gedit-plugins
      (has comment and uncomment)
    2. Zen Coding Plugin: It lets you keep your custom shortcuts too. Available on github:
      https://github.com/mikecrittenden/zen-coding-gedit
      (has toggle comment)
      (my personal favorite)
    3. Line Tools Plugin: found in the Gedit/Gmate package of Ubuntu-on rails ppa
      https://launchpad.net/~ubuntu-on-rails/+archive/ppa
      as well as on Github
      https://github.com/gmate/gmate
      The Zen Coding Project is also now a part of this plugin
    Last edited by bhavin137; November 25th, 2012 at 08:56 PM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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