Jump to content
Sign in to follow this  

Scite customization for python

Recommended Posts



As many of us use scite for autoit code, I would like to know if anyone know how to customize it to get code folding with python file ?


#region myfold

#endregion myfold

I use it a lot in my autoit codes, and would really like to have it in python files. I mainly use scite with python also as I know it good.

Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79

Share this post

Link to post
Share on other sites

Folding is handled by the lexer and according the SciTE documentation, The Python lexer does support folding.

The Full SciTE4AutoIT3 installer does have all lexers and the Properties files included so you need to update properties file with the correct keywords.

Maybe the folks at the SciTE site can help you implement extra keywords to fold on.


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
Live for the present,
Dream of the future,
Learn from the past.

Share this post

Link to post
Share on other sites

I have Scite version 2.28 and code folding for *.py scripts is available for indented coding. So you could add folding like this

def Region(n):

return 1

if Region("code folding A"):


while b< 50:

print ( b )



#end code folding A

Though it's a bit naff.

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this