How to comment multiple lines at the same time? Without using #

Asked by Abhi on 2017-06-10

I would like to know the code for SikuliX to comment multiple lines or a block of code at the same time. Its so hectic to comment many lines one by one by using #, kindly help me. thanks !!!

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Abhi
Solved:
2017-06-11
Last query:
2017-06-11
Last reply:
2017-06-11
masuo (masuo-ohara) said : #1

Use three double quotes in a row.
https://www.python.org/dev/peps/pep-0008/#comments

[sample codes:]
if exists("1497125110810.png",0):
    print "true"
    """
    comment 1
    comment 2
    """
else:
    print "false"
    """
    comment 3
    comment 4
    """

Abhi (abhijeetmak) said : #2

I used this , but unfortunately it doesnt work in SikuliX 1.1.1.

masuo (masuo-ohara) said : #3

I use SikuliX1.1.1 ,too.
What error occured?
Did you check indentation?

Abhi (abhijeetmak) said : #4

Its Working now. I added from sikuli import* so now its working, thanks a lot!!!