zoukankan      html  css  js  c++  java
  • Notepad++添加插件Funtion List 支持PHP

    插件下载地址:functionlist插件

    配置方法:关闭notepad++;

        functionlist.dll拷贝到 安装目录/plugins目录下;

      下载php.bmp 地址:https://github.com/gwarnants/FunctionList-PHP-Patch/blob/master/php.bmp

         c++.flb和FunctionListRules.xml拷贝到C:Documents and SettingsAdministratorApplication DataNotepad++pluginsconfig下;

       

      在这其间文件不能用notepad++编辑。

    打开FunctionListRules.xml

    替换下面标签中的内容:PHP parsing rules

    <Language name="PHP" imagelistpath="pluginsConfigphp.bmp">
            <CommList param1="#" param2="" />
            <CommList param1="//" param2="" />
            <CommList param1="/*" param2="*/" />
            <Group name="INCLUDE" subgroup="" icon="2" child="2" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg='^s*(include|require)(_once)?[s&apos;&quot;(]*' regexfunc="[w./-]+" regexend='[&apos;&quot;)s]*;$' bodybegin="" bodyend="" sep="" />
                <Rules regexbeg="^s*uses+" regexfunc="[w\]+" regexend="[ws]*;$" bodybegin="" bodyend="" sep="" />
            </Group>
            <Group name="CLASS" subgroup="" icon="1" child="1" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="{" keywords="">
                <Rules regexbeg="^s*(abstract|final)?s*classs*" regexfunc="w+" regexend="" bodybegin="{" bodyend="}" sep="" />
            </Group>
            <Group name="INTERFACE" subgroup="" icon="0" child="0" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="{" keywords="">
                <Rules regexbeg="^s*interfaces+" regexfunc="w+" regexend="" bodybegin="{" bodyend="}" sep="" />
            </Group>
            <Group name="CONSTANT" subgroup="" icon="8" child="8" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*consts+" regexfunc="[w_]+" regexend="" bodybegin="" bodyend="$" sep="" />
                <Rules regexbeg='^s*defines*[(&apos;&quot;)s]+' regexfunc="[w_]+" regexend="" bodybegin="" bodyend="$" sep="" />
            </Group>
            <Group name="PUBLIC VAR" subgroup="" icon="6" child="6" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(public|var)s+" regexfunc="$[w_]+" regexend="" bodybegin="" bodyend="$" sep="" />
            </Group>
            <Group name="PUBLIC STATIC VAR" subgroup="" icon="7" child="7" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(publics+)?statics+(publics+)?" regexfunc="$[w_]+" regexend="" bodybegin="" bodyend="$" sep="" />
            </Group>
            <Group name="PROTECTED VAR" subgroup="" icon="4" child="4" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*protecteds+" regexfunc="$[w_]+" regexend="" bodybegin="" bodyend="$" sep="" />
            </Group>
            <Group name="PROTECTED STATIC VAR" subgroup="" icon="5" child="5" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(protecteds+static|statics+protected)s+" regexfunc="$[w_]+" regexend="" bodybegin="" bodyend="$" sep="" />
            </Group>
            <Group name="PRIVATE VAR" subgroup="" icon="9" child="9" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*privates+" regexfunc="$[w_]+" regexend="" bodybegin="" bodyend="$" sep="" />
            </Group>
            <Group name="PRIVATE STATIC VAR" subgroup="" icon="10" child="10" autoexp="0" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(privates+static|statics+private)s+" regexfunc="$[w_]+" regexend="" bodybegin="" bodyend="$" sep="" />
            </Group>
            <Group name="CONSTRUCTOR" subgroup="" icon="21" child="21" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(publics+)?functions+" regexfunc="[__construct]+s*(.*)" regexend="s*" bodybegin="{" bodyend="}" sep=";" />
            </Group>
            <Group name="PUBLIC METHOD/FUNCTION" subgroup="" icon="19" child="19" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(publics+)?functions+" regexfunc="(?&lt;!__construct)(?!(?:__construct))[w_]+s*(.*)" regexend="s*" bodybegin="{" bodyend="}" sep=";" />
            </Group>
            <Group name="PUBLIC STATIC METHOD" subgroup="" icon="20" child="20" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(publics+)*statics+(publics+|finals+)*functions+" regexfunc='[&quot;w_]+s*(.*)' regexend="s*" bodybegin="{" bodyend="}" sep=";" />
            </Group>
            <Group name="PUBLIC ABSTRACT METHOD" subgroup="" icon="23" child="23" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(publics+|statics+)*abstracts+(statics+|publics+)*?functions+" regexfunc="[w_]+s*(.*)" regexend="s*;" bodybegin="" bodyend="" sep=";" />
            </Group>
            <Group name="PUBLIC FINAL METHOD" subgroup="" icon="22" child="22" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(publics+)?finals+(publics+|statics+)*functions+" regexfunc="[w_]+s*(.*)" regexend="s*" bodybegin="{" bodyend="}" sep=";" />
            </Group>
            <Group name="PROTECTED METHOD" subgroup="" icon="11" child="11" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*protecteds+functions+" regexfunc="[w_]+s*(.*)" regexend="s*" bodybegin="{" bodyend="}" sep=";" />
            </Group>
            <Group name="PROTECTED STATIC METHOD" subgroup="" icon="12" child="12" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(statics+(finals+)?protecteds+(finals+)?|protecteds+statics+(finals+)?)functions+" regexfunc="[w_]+s*(.*)" regexend="s*" bodybegin="{" bodyend="}" sep=";" />
            </Group>
            <Group name="PROTECTED ABSTRACT METHOD" subgroup="" icon="13" child="13" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(statics+)?(abstracts+(statics+)?protected|protecteds+(statics+)?abstract)s+(statics+)?functions+" regexfunc="[w_]+s*(.*)" regexend="s*;" bodybegin="" bodyend="" sep=";" />
            </Group>
            <Group name="PROTECTED FINAL METHOD" subgroup="" icon="14" child="14" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*((protecteds+finals+(statics+)?)|finals+(statics+)?protecteds+(statics+)?)functions+" regexfunc="[w_]+s*(.*)" regexend="s*" bodybegin="{" bodyend="}" sep=";" />
            </Group>
            <Group name="PRIVATE METHOD" subgroup="" icon="16" child="16" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(finals+)?privates+(finals+)?functions+" regexfunc="[w_]+s*(.*)" regexend="s*" bodybegin="{" bodyend="}" sep=";" />
            </Group>
            <Group name="PRIVATE STATIC METHOD" subgroup="" icon="17" child="17" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*(statics+(finals+)?privates+(finals+)?|privates+statics+(finals+)?)functions+" regexfunc="[w_]+s*(.*)" regexend="s*" bodybegin="{" bodyend="}" sep=";" />
            </Group>
        </Language>
     
        CSS parsing rules
        <Language name="CSS" imagelistpath="pluginsConfigphp.bmp">
            <CommList param1="/*" param2="*/" />
            <Group name="IMPORT" subgroup="" icon="2" child="2" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg='^s*@imports+[w]*[s(&quot;]*s*' regexfunc="[w./-]+" regexend="[&quot;)]+[ws,]*;$" bodybegin="" bodyend="" sep=";" />
            </Group>
            <Group name="SELECTOR" subgroup="" icon="19" child="19" autoexp="4" matchcase="0" fendtobbeg="" bbegtobend="" keywords="">
                <Rules regexbeg="^s*[w.#s:[]=~*,+&gt;;@()-]+s*" regexfunc="[w.#s:[]=~*,+&gt;;@()-]*" regexend="" bodybegin="{" bodyend="}" sep=";" />
            </Group>
        </Language>

    然后重启Notepad++,选择视图-->函数列表即可看到函数结构。
     
     

     

  • 相关阅读:
    linux系统下抢占式内核与非抢占式内核的区别
    Cache映射
    Delphi利用系统环境变量获取常用系统目录
    visual studio2008中AJAX的安装配置,及错误!
    网站配置工具无法建立与数据库的连接的解决方案
    PowDesigner工具的使用
    近日网站开发收获(一)
    (转载)power designer 12.5和破解补丁下载
    《Sqlserver 之我的新大陆》
    学习之路
  • 原文地址:https://www.cnblogs.com/dest/p/3497957.html
Copyright © 2011-2022 走看看