SciTePHPSuit

Optimize SciTe For PHP
Powered by qining(http://70.io)

Change Log

version: 0.3 (2008.6.2)

version: 0.2

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

已有 29 条评论

  1. bigX bigX

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

  2. sluke sluke

    哇,好东西~

  3. Jeffrey04 Jeffrey04

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

  4. 混蛋70 混蛋70

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

  5. Jeffrey04 Jeffrey04

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

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

  6. 混蛋70 混蛋70

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

  7. Jeffrey04 Jeffrey04

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

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

  8. 混蛋70 混蛋70

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

  9. aa aa

    看一看

  10. Jeffrey04 Jeffrey04

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

  11. 混蛋70 混蛋70

    这也是Scite的乐趣所在:)

  12. Jeffrey04 Jeffrey04

    呵呵

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

  13. 混蛋70 混蛋70

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

  14. james james

    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

    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

    OK, Thanks a lot ... :)

  17. james james

    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

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

  19. humeniuc humeniuc

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

  20. NND NND

    搞的好。。

  21. goodman goodman

    good files, i need

  22. Anthony Holub Anthony Holub

    Thanks for it!

  23. doutu doutu

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


    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

    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

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

  26. fvzone fvzone

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

  27. fvzone fvzone

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

  28. 自由人 自由人

    路过牛人老巢。。。不知所云的飘走。。。

  29. Tianyu Tianyu

    无奈撸过。。。

评论已关闭