SciTePHPSuit

作者:混蛋70 发布时间:March 13, 2008

Optimize SciTe For PHP
Powered by qining(http://www.joyqi.com)

Change Log

version: 0.3 (2008.6.2)

  • Fix EOL problem on Unix and MacOSX
  • Fix some crash error
  • More accurate matching

version: 0.2

  • Support for autocomplete (both variable and function)
  • Support for PHP Doc
  • Something more...

Usage:

  1. Copy the script file to your SciTe Path
  2. Set "autocompleteword.automatic=0"
  3. Add "ext.lua.startup.script=$(SciteDefaultHome)/SciTePHPSuit.lua" to your config properties
  4. Restart your editor

Screen Shot:

Function Doc

Variable Doc

Variable AutoComplete

Function AutoComplete

Donwload

已有 27 条评论 »

  1. bigX bigX March 13th, 2008 at 10:32 am

    又是沙发!
    这么强悍的东西~~~~~~~~

  2. sluke sluke March 13th, 2008 at 10:36 am

    哇,好东西~

  3. Jeffrey04 Jeffrey04 March 26th, 2008 at 03:15 am

    谢谢,想问问,autocompletion只能用在同一个文件吗?
    我的意思是……如果我要调用另一个文件的variable这个script叫不出那个var的吧?

  4. 混蛋70 混蛋70 March 26th, 2008 at 09:01 am

    是的,无法叫出,因为SciTe只是一个编辑器,它对项目的支持比较弱,所以也没办法做这种扩展.

  5. Jeffrey04 Jeffrey04 March 26th, 2008 at 10:33 pm

    那么能够定期指示scite呼叫php来执行这个程式吗?
    http://scintilla.sourceforge.net/phpapi.php.txt

    是从这里找到的
    http://groups.google.com/group/scite-interest/web/extras

  6. 混蛋70 混蛋70 March 27th, 2008 at 10:06 am

    是可以的,但是这样的效率比较低,实际上网上有类似的脚本
    你说的那个脚本是用来生成api的,如果用它来实时生成函数列表,那么效率就会很低.
    我现在的希望是,能在Scite里嵌入一个项目管理引擎,用Lua写可能不行.

  7. Jeffrey04 Jeffrey04 March 27th, 2008 at 06:47 pm

    呵呵,好的,谢谢
    目前我的project(项目?)是用openkomodo开发/管理的(之前用PDT但是PDT有点太复杂了而且用不了这么多功能),而一些小文件则就用scite来修改

    http://caladbolg.net/scite.php
    他这里有还满多有趣的小东西的

  8. 混蛋70 混蛋70 March 27th, 2008 at 07:21 pm

    这个人就是scite-tools的作者,我也用过,就是有时候会比较慢,不过功能很强大

  9. aa aa March 27th, 2008 at 09:16 pm

    看一看

  10. Jeffrey04 Jeffrey04 March 27th, 2008 at 10:15 pm

    恩,刚在重新configure过我的SciteUser.properties,弄了半天,眼都快花了~

  11. 混蛋70 混蛋70 March 28th, 2008 at 11:17 am

    这也是Scite的乐趣所在:)

  12. Jeffrey04 Jeffrey04 March 28th, 2008 at 04:35 pm

    呵呵

    在你的网站转了老半天才知道你开发这个blogging程序的,很很很厉害涅~我N年前刚学编程的时候也写过一个极度阳春的blogging程序后来因为不会spam control和没什么时间更新就跳到wordpress了,呵呵呵呵。

  13. 混蛋70 混蛋70 March 30th, 2008 at 07:22 pm

    感谢你的关注,这个项目将会继续发展,由更多的人来维护

  14. james james June 2nd, 2008 at 09:20 am

    Btw, thanx 4 ur script. It's great .It run well on windows environment, but it not run properly under my ubuntu (Gutsy Gibbon), it always display error in output panel. Any suggest ?

  15. 混蛋70 混蛋70 June 2nd, 2008 at 09:49 am

    I‘ve been aware of this issue.This is because the EOL(End Of Line) character on UNIX is different from Windows.

    I have fixed this issue and updated the script.You can download it again.

  16. james james June 2nd, 2008 at 02:53 pm

    OK, Thanks a lot ... :)

  17. james james June 4th, 2008 at 03:54 pm

    Sorry it's still not work ... are you sure that you've uploaded the rights version? I think you're uploaded version 0.2 not 0.3
    thanks

  18. 混蛋70 混蛋70 June 4th, 2008 at 04:04 pm

    Can you show me the errors which display in your output panel?And, What's the version you're using now?

  19. humeniuc humeniuc June 12th, 2008 at 04:07 pm

    In your last download version 0.3, version 0.2 appear.
    Good tool. Thanks for it :)

  20. NND NND July 16th, 2008 at 05:25 pm

    搞的好。。

  21. goodman goodman August 29th, 2008 at 03:53 pm

    good files, i need

  22. Anthony Holub Anthony Holub March 5th, 2009 at 09:19 pm

    Thanks for it!

  23. doutu doutu May 1st, 2009 at 02:18 pm

    自动补齐[、'、"、{......

    local toClose = { ['('] = ')', ['{'] = '}', ['['] = ']', ['"'] = '"', ["'"] = "'" }
    function OnChar(char)
        if toClose[char] ~= nil then
            local pos = editor.CurrentPos
            editor:ReplaceSel(toClose[char])
            editor:SetSel(pos, pos)
        else
            checkAutoComplete(char)
            checkDoc(char)
        end
    end
  24. doutu doutu May 20th, 2009 at 12:04 am

    bug fix

    --如果是注释内换行
    if "\n" == char and lineEnd >= 2 and '*' == editor:textrange(lineStart + tabLen, lineStart + tabLen + 1) and '/' ~= editor:textrange(lineStart + tabLen + 1, lineStart + tabLen + 2) then

    此行判断只需判断"\n" == char即可,("\n" == char or "\r" == char)
    将导致输入两次“* ”, 在xp sp3使用时遇到次问题。

    自动补齐增强版:

    toClose = { ['('] = ')', ['{'] = '}', ['['] = ']', ['"'] = '"', ["'"] = "'" }
    function OnChar(char)
        local pos = editor.CurrentPos
        local preChar = editor.CharAt[pos-2]
        local nextChar = editor.CharAt[pos]
        if toClose[char] ~= nil and char ~= string.char(nextChar) then
            editor:ReplaceSel(toClose[char])
            editor:SetSel(pos, pos)
        elseif string.len(preChar) == 1 and char == toClose[string.char(preChar)] then
                editor:SetSel(pos, pos+1)
                editor:ReplaceSel('')
        else
            checkAutoComplete(char)
            checkDoc(char)
        end
    end
  25. 混蛋70 混蛋70 May 20th, 2009 at 09:41 am

    在某些系统下面,默认的换行符是"\r" 。。。

  26. fvzone fvzone October 17th, 2009 at 01:54 am

    曾经用过,但是我想问可以通过lua读取载入的文件编码自动设置不。现在设置UTF-8打开GBK乱码,硬伤...

  27. fvzone fvzone October 17th, 2009 at 01:58 am

    我曾经还做过这样一个配置,我非常希望他有自动编码检测功能
    我曾经也自己改过一个:http://fvzone.com/blog/fvscite.fv

添加新评论 »