SciTePHPSuit

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

Comments (25)

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

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

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

    哇,好东西~

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    看一看

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

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

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

    这也是Scite的乐趣所在:)

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

    呵呵

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

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

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

  14. james June 2nd, 2008 at 09:20 am #14 Reply
    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 June 2nd, 2008 at 09:49 am #15 Reply
    混蛋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 June 2nd, 2008 at 02:53 pm #16 Reply
    james

    OK, Thanks a lot ... :)

  17. james June 4th, 2008 at 03:54 pm #17 Reply
    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 June 4th, 2008 at 04:04 pm #18 Reply
    混蛋70

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

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

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

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

    搞的好。。

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

    good files, i need

  22. Anthony Holub March 5th, 2009 at 08:19 pm #22 Reply
    Anthony Holub

    Thanks for it!

  23. doutu May 1st, 2009 at 02:18 pm #23 Reply
    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 May 20th, 2009 at 12:04 am #24 Reply
    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 May 20th, 2009 at 09:41 am #25 Reply
    混蛋70

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

Leave a ReplyClick here to cancel reply

你可以在评论中使用以下标签 <code><blockquote>