Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any way how I can

  • comment (add # at the beginning of the line) and
  • uncomment remove # from somewhere before the code

on the line(s) when coding in ruby?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

To Toggle a block comment (e.g. in Ruby, #), press Ctrl+Q. Other comment related commands can be found under Edit > Comment/Uncomment.

comment

share|improve this answer
    
Great, thank you. I tried to google it but didn't find anything. –  Radek Jun 6 '12 at 6:09
1  
@Radek Don't forget to mark the answer as accepted! –  slhck Jun 6 '12 at 17:11
    
I wasn't able to so. I had to wait for 5 mins and left the office then. Thank you for reminding me. –  Radek Jun 6 '12 at 23:17
    
Is the comment character based on the langueare ruby,php I am just editing? –  Radek Jun 6 '12 at 23:18
    
@Radek Yes. Notepad++ uses the comment character defined for a given language. –  iglvzx Jun 6 '12 at 23:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.