Greetings,
I have a script that generates a function / file header that is perterbed by
the smart indent feature. Is there a way to turn it off at the begining of the script and then turn it back on at the end?
The script is in python...
Thanks!
toggle smart indent from script?
Hi Raz,
Only some of the the options from the Editor Options, General section can be controlled by scripting.
But you can effectively turn of smart indenting in the script by not using the Enter keyboard function. Try replacing the call to Enter with a call to EnterLine, EnterOpen or EnterNext.
Jussi
Unfortunately notIs there a way to turn it off at the begining of the script and then turn it back on at the end?

But you can effectively turn of smart indenting in the script by not using the Enter keyboard function. Try replacing the call to Enter with a call to EnterLine, EnterOpen or EnterNext.
Jussi