php mate,textmate 命令行_使用PHP在TextMate中创建命令

php mate,textmate 命令行_使用PHP在TextMate中创建命令textmate 命令行 使用 PHP 在 TextMate 中创建命令 textmate 命令行 使用 PHP 在 TextMate 中创建命令 textmate 命令行 TextMate is the best thing to enter my programming life since MooTools TextMate is extremely flexible and

大家好,我是讯享网,很高兴认识大家。

textmate 命令行_使用PHP在TextMate中创建命令

textmate 命令行_使用PHP在TextMate中创建命令

textmate 命令行

0407483efe9c96aec7861fab2005c927.png
讯享网

TextMate is the best thing to enter my programming life since MooTools. TextMate is extremely flexible and contains a host of functions that make my programming time much more efficient. Snippets, commands, macros -- TextMate has it all. And when a command or snippet doesn't exist, write it yourself! In what language? Any language installed on your system! TextMate's so flexible that you can write commands in the language you feel most comfortable in.

自MooTools以来,TextMate是进入我的编程生涯的**选择。 TextMate非常灵活,并且包含许多功能,这些功能使我的编程时间更加高效。 片段,命令,宏-TextMate拥有了一切。 当命令或代码段不存在时,请自己编写! 用什么语言? 您的系统上安装了任何语言! TextMate非常灵活,您可以使用最舒适的语言编写命令。

[var1]

The first thing we do is tell the command "textarea" that our command is going to be coded in PHP:

我们要做的第一件事是告诉命令“ textarea”,我们的命令将用PHP编码:

#!/usr/bin/env php

Next we read in the content of the current buffer:

接下来,我们读入当前缓冲区的内容:

$content = file_get_contents('php://stdin');

Then...we add any PHP we want to modify the buffer contents. When the buffer content has been modified as desired, you echo out the content and the buffer's content is replaced:

然后...我们添加任何我们想要修改缓冲区内容PHP。 根据需要修改缓冲区内容后,您将回显该内容并替换缓冲区的内容:

//do whatever you want here

$content = str_replace('MooTools','MooTools FTW!',$content);

//echo out modified content

echo $content;

?>

Here's an image of the screen so you have a visual.

这是屏幕的图像,因此您具有视觉效果。

7e166e460e070d891a9d53d7a7ca16e0.png

Have any TextMate commands you've created? Email them to me at [email protected] and I'll share them on this blog in the future!

您已创建任何TextMate命令吗? 通过[email protected]将它们通过电子邮件发送给我, 以后我将在此博客上分享!

翻译自: https://davidwalsh.name/textmate-php

textmate 命令行

textmate 命令行_使用PHP在TextMate中创建命令相关教程

小讯
上一篇 2025-03-22 09:53
下一篇 2025-02-09 15:39

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/126808.html