J
John Doe
Having trouble tabifying a section of Python code.
Code -- Tabify Region
Does it work for anyone else?
Thanks.
Code -- Tabify Region
Does it work for anyone else?
Thanks.
Having trouble tabifying a section of Python code.
Code -- Tabify Region
Does it work for anyone else?
Hello JD,John said:Having trouble tabifying a section of Python code.
Code -- Tabify Region
Does it work for anyone else?
Thanks.
George Sakkis said:Yes it does, you have to select a region before (e.g. ctrl+A for
the whole file). Regardless, the common standard indentation is 4
spaces; avoid tabs if you can.
Quickest way to indent multiple lines is to select them, then pressJohn said:Actually, what I was looking for was indent, not tab.
And I found that in the menu.
Another question...
There is a region on the left margin to the left of the code and to
the right of the outlining area, in between the code and the
outlining area. It looks like an area used to select lines. But
dragging the pointer down that area does nothing apparent. Isn't
that supposed to select lines of text? Maybe I have colors set
wrong, but selected text does show up when selected other ways. Or
maybe that area is nonfunctional, left over from the IDE?
Thanks.
Quickest way to indent multiple lines is to select them, then
press tab.
I haven't tried it in Komodo IDE, but there is a preferences item calledJohn said:...
Thanks.
Useful because I usually paste blocks of code.
Lastly... Is there a way to force the editor to open text (*.txt)
files as Python files so that they are color-coded? Without changing
the *.txt extension? I will be editing text files that are part of a
Python program (Dragonfly). Having the text color-coded will help. I
can probably make a script to do a workaround, but being able to
just hit the Save button would be best.
Thanks.
I haven't tried it in Komodo IDE, but there is a preferences item
called File Associations. In it, try choosing *.txt, and change
the language drop-down to Python.
Presumably when you're done with the special case, you'd change it
back to "text file"
John said:Another question...
There is a region on the left margin to the left of the code and to
the right of the outlining area, in between the code and the
outlining area. It looks like an area used to select lines. But
dragging the pointer down that area does nothing apparent. Isn't
that supposed to select lines of text? Maybe I have colors set
wrong, but selected text does show up when selected other ways. Or
maybe that area is nonfunctional, left over from the IDE?
Trent Mick said:John Doe wrote:
BTW, we call those regions "gutters" of the editing area.
Okay.
If you make line numbers visible (View -> View Line Numbers) then
you can do what you want in the line numbers gutter.
I am using the free editor-only Komodo Edit. Apparently that does not
work here.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.