toggle smart indent from script?

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
raz
Posts: 16
Joined: Wed Jan 19, 2005 3:41 pm
Location: MidWest -- USA

toggle smart indent from script?

Post 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!
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post 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
Post Reply