Editplus 代码自动完成 代码片段 代码缩写

来源:互联网 发布:莆田广电网络社会招聘 编辑:程序博客网 时间:2024/05/20 06:26

#T=ll

ob_start();

echo "<pre>";

print_r(^!);

echo "</pre>";

$a=ob_get_contents();

$filename = $_SERVER['DOCUMENT_ROOT']."/log-".date("Y-m-d").".txt";

$file = fopen($filename, "a");

$tipmsg = "/r/n******Final File:       "

    //.end(explode('/',$_SERVER['PHP_SELF']))

    .$_SERVER['PHP_SELF']

    ."/r/n******Code Container:   "

    .str_replace("//","/",substr(__FILE__,strlen($_SERVER['DOCUMENT_ROOT'])))

    ."/r/n******Time:             "

    .date("Y-m-d H:i:s")."/r/n/r/n";

fwrite($file, $a.$tipmsg);

fclose($file);

ob_end_clean();

 

保存为php.acp

 

Tools--Preferences--Files--Setting & syntax,file types 中选择php

 

Setting and syntax 选项卡中 Auto completion 选择到刚刚我们保存的按个acp文件。

 

Apply

 

新建一个php文件,输入 ll 回车。

原创粉丝点击