Jump to content

Scite customization for python


kiboost
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

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

Link to comment
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"):

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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...