That scenario reproducable for me in SampleBrowser->Python Editor Demo.
If I have
class FibTest:
def __init__(self, count):
if count <= 0:
raise ValueError("'count' must be larger than zero.")
self.count = count
in SyntaxEditor, then there are 2 collapsable regions (class and def). If I'll paste this code once more
class FibTest:
def __init__(self, count):
if count <= 0:
raise ValueError("'count' must be larger than zero.")
self.count = count
class FibTest:
def __init__(self, count):
if count <= 0:
raise ValueError("'count' must be larger than zero.")
self.count = count
I'll get 2 collapsable regions: class from the line 1 to 5 and def from the line 7 to 10.
[Modified 10 years ago]