Page 1 of 1

toggle smart indent from script?

Posted: Thu Jun 16, 2005 4:53 pm
by raz
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!

Posted: Thu Jun 16, 2005 11:10 pm
by jussij
Hi Raz,
Is there a way to turn it off at the begining of the script and then turn it back on at the end?
Unfortunately not :( 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