Sign in to follow this  
Followers 0
kiboost

Scite customization for python

3 posts in this topic

Hi,

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 ?

like

#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.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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"):

a,b=0,1

while b< 50:

print ( b )

a,b=b,a+b

time.sleep(20)

#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  
Followers 0