Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149332 | Nov 22,2019 12:35 AM UTC | Sep 29,2020 07:08 AM UTC | WinForms | 7 |
![]() |
Tags: EditControl |
The issue is the indentation for python as it doesn't happen between pairs of brackets
The issue is what do I put as the EndBlock as python doesn't have an endblock character? |
We are currently checking on your queries at our end and updating the further details in two business days.
If possible, can you please provide clear information about your requirement with an image illustration, it would help us to provide you with the solution as soon as possible.
|
I'm trying to find a way to perform auto indentation. The issue is described below:
"Most of the programming languages like C, C++, Java use braces { } to define a block of code. Python uses indentation.
A code block (body of a function, loop etc.) starts (in python) with indentation and ends with the first unindented line. The amount of indentation is up to you, but it must be consistent throughout that block."
I can start the block fine. All blocks start with a ":" eg:
def test():
print("hello world")
The problem is how do I indicate an end of block, so that the auto indentation stops, as the end of block is signalled by an unindented line rather than a symbol such as '}'
Thanks
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.
I was having the same issue for Python and couldn't find the solution till yet. but now i think this will work.