0

I am using the excellent "Learn Python The Hard Way" tutorials and i am wondering does anyone know if its possible to create block comments in it? I note from a similar question here that it does not seem to be possible in Python but that some editors have implemented methods to do it.

EDIT I have edited the above question to provide more detail and to use the term "block comment" insted of "block quote"

Thanks

1
  • 1
    What do you mean by 'block quotes'? Commented Feb 23, 2013 at 23:54

2 Answers 2

2

This is a duplicate question: Commenting/Uncommenting a block of Python code in TextWrangler

However, I recommend you not bother with those 9 steps and instead just download sublime text 2.

It is an excellent editor for Python (I believe that's the language its written in, in fact.) and you can accomplish what you're looking for by simply highlighting the code block and using the comment/uncomment keyboard shortcut: Ctrl+Shift+/

Sign up to request clarification or add additional context in comments.

3 Comments

Actually, since python doesn't have a special syntax for block comment, simply do Ctrl+/ will comment out all the selected lines.
Thanks, ill check Sublime Text out
I just discovered that in Eclipse PyDev it is possible to do this by highlighting the selected text and hitting CMD and 4
2

In textwrangler on a mac, this worked for me. Highlight the text you want to comment out. Hold down the Command Key and hit /.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.