Jump to content

CallTip Code in SciTE


Recommended Posts

For my PSPad4AutoIt3 project I am working on a feature like the CallTips in SciTE.

I've already started creating the GUI for it and the information for AutoIt is there ("...\AutoIt3\Extras\Editors\PSPad\AutoIt3.def"). Now the recognition for the function names (NearestWord, ...) and for the position of the parameters is missing.

The whole project is pretty big. Therefore and before I develop everything that already exists, I wanted to ask if there is a way to use the CallTip code of SciTE.

I don't know who the developer is, so I ask here.😊

Regards,
Bernd.

Edited by Professor_Bernd
Link corrected.
Link to comment
Share on other sites

  • Developers

Calltips are part of the standard SciTE code made by Neil Hodgson and can be found at his website as credited in the SciTE4AutoIt3 helpfile.

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

7 hours ago, Jos said:

Calltips are part of the standard SciTE code made by Neil Hodgson and can be found at his website as credited in the SciTE4AutoIt3 helpfile.

Now I looked on the SciTE website and searched for information for CallTips. I've been on the website a thousand times in the past months and it's like a jungle to me. Too bad that there is no search function there.

If there is the source code for CallTips there, it probably takes longer to find it than to write my own.

Has anyone ever written anything similar, or a tip where I can find information about it?

Bernd.

Link to comment
Share on other sites

  • Developers

mmm.....  my (wild) guess would be that CallTip.cxx contains the Caltip logic. ;) 

.. but doubt you can just simply port it to PSPAD. 

Edited by 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

Where can I find the CallTip.cxx? :> Maybe I'm blind, but I can't find them, neither in the AutoIt folder, nor in SciTE nor in the User folder. I searched for "CallTip", without extension.

OK, I asked Master Google and found it. Thank you!

 

Edited by Professor_Bernd
Link to comment
Share on other sites

I have looked at the CallTip.cxx and it is impressive. Thereby this is only the visual component and its logic, and the recognition and assignment of the code words from au3.api is missing.

This will be fun! A lot of work. :sweating:

I already knew that you and others put a lot of work into SciTE, but it makes me realize how much work it really was! Respect! 👍

 

Bernd.

Link to comment
Share on other sites

  • Developers

I can't take any credit for the base SciTE code and only wrote the lexer for autoit3 and made some minor modifications to the source distributed by Neil.

Edited by 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

51 minutes ago, Jos said:

only wrote the lexer for autoit3 and made some minor modifications to the source distributed by Neil.

... and AutoIt3Wrapper, and ...

That's enough to impress me! Good work! 👍

SciTE is a good base and SciTE4AutoIt3 a very good extension to fulfill the task as IDE for AutoIt3. The work of Neil, you and many others (e.g. BugFix, as far as I know) have made SciTE4AutoIt3 what it is now.

I hope to do at least half the job on PSPad4AutoIt3. It will be an alternative to SciTE4AutoIt3, so the user can choose according to his taste.

The user interest in PSPad4AutoIt3 is so far very low, but that doesn't matter. I have no time or success pressure, and so far it's a lot of fun! The users in the AutoIt forums are friendly and helpful, as is PSPad developer Jan Fiala. What more do you want? :)

Link to comment
Share on other sites

Hi abberration.

Thank you. 🙂

Can you be a little more specific about what you would like to see in English?

AutoIt and PSPad can be set to the desired language as normal. My Improvement Kit is in a very early pre-alpha stage. At this stage it shows all relevant things only in English. E.g. in the main menu / Scripts / _AutoIt / ... or the Fav tools, etc.

If anything is not in English, just let me know. ;)

Link to comment
Share on other sites

Thank you for your interest!

14 minutes ago, abberration said:

I saw your file titled " PSPad4AutoIt3 Projekt DE 2019-10-12a.zip " and assumed it was just in German.

This is a good hint! I have named the title DE because I want to see if it can work first. At a later date there may be a PSPad4AutoIt3 EN project if more users are interested. Until then the project name remains with DE, but the next improvement kit I will name it EN. Thanks for the hint!

Until then, it has its home in the DE AutoIt forum, and is still basically set to English. You can change this as you like, e.g. in AutoIt, if you have installed the AutoIt help in German, or in French, or Chinese, ... PSPad will use it. Or for PSPad in the menu / Settings / Program Settings / Language / ... you can choose what you want. :)

Please remember that it is at a very early stage! There are only a few features and probably many bugs. ;)

At this point there are more improvements that I can (hopefully) make available in 2 or 4 weeks.

Link to comment
Share on other sites

  • Developers
2 hours ago, Professor_Bernd said:

... and AutoIt3Wrapper, and ...

I was only referringering to the SciTE/Scintilla part itself. ;) 

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

  • Developers

The lexer takes care of the syntax coloring/highlighting and folding for a specific file extension. 

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

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