Jump to content

SciTe User calltip entries


Recommended Posts

I figured this would be the best place to ask, since Scite is probably the most used editor here...

I'm trying to add my own user calltips. I edited the 'au3.user.calltips.api' file, and got it working using the .au3 file extension. However, I'm trying to write shell scripts for linux with the '.sh' file extension. I found that the only calltips that are recognized are under that filename 'au3.user.calltips.api'. So... my issues are:

1) How can I make a calltips file for the .sh extension

2) The only way I can get the 'popups' for the keywords in the calltips file to show up is if the language selected is 'AutoIt3' (under Language > AutoIt3). If I have anything else selected, the calltips don't work.

Please help!

Link to comment
Share on other sites

I figured this would be the best place to ask, since Scite is probably the most used editor here...

I'm trying to add my own user calltips. I edited the 'au3.user.calltips.api' file, and got it working using the .au3 file extension. However, I'm trying to write shell scripts for linux with the '.sh' file extension. I found that the only calltips that are recognized are under that filename 'au3.user.calltips.api'. So... my issues are:

1) How can I make a calltips file for the .sh extension

2) The only way I can get the 'popups' for the keywords in the calltips file to show up is if the language selected is 'AutoIt3' (under Language > AutoIt3). If I have anything else selected, the calltips don't work.

Please help!

You might get more on that from the actual Scintilla/SciTE project. SciTE4AutoIt is a customization of the more general open source SciTE editor.

From their web page:

There are some extra configuration files that can enhance SciTE for various languages and APIs.

I don't see sh, bsh, csh, ksh, etc. on that page, but you should be closer from there.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Just add this to your User Options file which will operate for all languages then. You could be better with a sh syntax file with this extra tool loaded with a sh.user.calltips.api though to keep au3 separate from sh.

# 15 MHz User Calltips
command.15.*=$(SciteDefaultHome)\scite.exe "$(SciteDefaultHome)\api\au3.user.calltips.api"
command.subsystem.15.*=1
command.name.15.*=User CallTip Entries

:)

Link to comment
Share on other sites

Just add this to your User Options file which will operate for all languages then. You could be better with a sh syntax file with this extra tool loaded with a sh.user.calltips.api though to keep au3 separate from sh.

# 15 MHz User Calltips
command.15.*=$(SciteDefaultHome)\scite.exe "$(SciteDefaultHome)\api\au3.user.calltips.api"
command.subsystem.15.*=1
command.name.15.*=User CallTip Entries

:)

Unfortunately, pasting that block of text didn't work. Do I need to make my own properties file? Basically, I'd like to be able to have a usercalltips.api file for my own functions, and ideally it would only work with files with a given extension (say, .sh). But if there's only a way to enable globally for any extension, that's fine, too. I just want to get it working.

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