[转载] 让SciTE能够和IDE一样进行成员提示
原文鏈接:http://karronqiu.spaces.live.com/?_c11_BlogPart_FullView=1&_c11_BlogPart_blogpart=&_c=BlogPart&partqs=amonth%3D11%26ayear%3D2005
讓SciTE能夠和IDE一樣進行成員提示
今天發現SciTE可以和IDE一樣在輸入"."之后顯示系統API的成員.本文最后的英文介紹了怎樣生成供SciTE使用的API文件.當然你也可以下載別人生成的API.我一般用SciTE編寫Python代碼,那么我就用怎么使用python.api為例來介紹.首先下載下面的生成python API的腳本,雙擊運行,運行完成之后會生成一個python.api的文件,將python.api拷貝到scite的目錄中,然后在SciTE的選項菜單中選擇User Options,將打開一個用戶個人設置文件,然后將下面的代碼拷貝到里面api.*.py=$(SciteDefaultHome)/python.api
api.*.pyw=$(SciteDefaultHome)/python.api
autocomplete.choose.single=1
autocomplete.python.ignorecase=1
autocomplete.python.start.characters=.
autocomplete.python.fillups=(
#autocompleteword.automatic
calltip.python.ignorecase=1
calltip.python.word.characters=._$(chars.alpha)$(chars.numeric)
保存后重新打開SciTE就行了,另外這個用戶配置文件一般在你個人主目錄里面.可以看看我的效果.在這里可以下載C/C++ Windows API,Opengl API, java的API,以及其他很多語言的API文件.
The .api files can be generated by hand or by using a program. There are also downloadable ready-to-use .api files.
For C/C++ headers, an API file can be generated using ctags and then the tags2api Python script (which assumes C/C++ source) on the tags file to grab complete multiple line function prototypes. Some common headers surround parameter lists with a __P macro and may have comments. The cleanapi utility may be used on these files.
To generate an API file for Python modules, there is a gen_python script.
To generate an API file for Java classes, there is a ApiBuilder.java program.
總結
以上是生活随笔為你收集整理的[转载] 让SciTE能够和IDE一样进行成员提示的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 新建了一个英文Blog
- 下一篇: 委托概念