mac textedit_如何在Mac TextEdit中保存PHP文件

mac textedit

TextEdit is a simple text editor that comes standard on every Apple Macintosh computer. By following a few simple steps, you can use the TextEdit program to create and save PHP files. PHP is a server-side programming language that is used in conjunction with HTML to enhance the features of a website.

TextEdit是每个Apple Macintosh计算机上的标准配置的简单文本编辑器。 通过执行一些简单的步骤,您可以使用TextEdit程序来创建和保存PHP文件 。 PHP是一种服务器端编程语言 ,与HTML结合使用可增强网站的功能。

开启TextEdit ( Open TextEdit )

​If the icon for TextEdit is located on the dock, as it is when the computer ships, just click the icon to launch TextEdit. Otherwise,

如果TextEdit图标位于扩展坞上(如计算机出厂时那样),只需单击该图标以启动TextEdit。 除此以外,

  • Open a Finder window by clicking on the Finder icon in the dock.

    通过单击扩展坞中的Finder图标来打开Finder窗口。

  • Choose Applications from the menu on the left.

    从左侧菜单中选择“ 应用程序 ”。

  • In the list of applications on the right side of the screen, find and double-click TextEdit.

    在屏幕右侧的应用程序列表中,找到并双击TextEdit。

更改TextEdit首选项 ( Change the TextEdit Preferences )

  • From the Format menu at the top of the screen, choose Make Plain Text. If you don't see this option, but see "Make Rich Text," the document is already set for plain text.

    从屏幕顶部的“ 格式”菜单中,选择“ 制作纯文本”。 如果您没有看到此选项,但看到的是“制作多格式文本”,则说明该文档已设置为纯文本格式。

  • Select Preferences from the TextEdit menu at the top of the screen.

    从屏幕顶部的TextEdit菜单中选择“偏好设置”

  • Click the New Document tab and confirm the radio button next to "Plain text" is selected.

    单击“ 新建文档”选项卡,并确认已选中“纯文本”旁边的单选按钮。

  • Click the Open and Save tab and confirm the box next to "Display HTML files as HTML code instead of formatted text" is checked.

    单击“ 打开并保存”选项卡,并确认已选中“将HTML文件显示为HTML代码而不是格式文本”旁边的框。

输入验证码 ( Enter the Code )

Type the PHP code into TextEdit.

在TextEdit中输入PHP代码

保存文件 ( Save the File )

  • Choose Save from the File menu.

    文件菜单中选择保存

  • Enter your_file_name.php into the Save As field, being sure to include the .php extension.

    在[另存新档]栏位中输入your_file_name .php ,确保其中包含。 php扩展名

  • Click the Save button.

    单击保存按钮。

If a pop-up asks you if you want to use .txt or .php as the file extension. Click the Use .php button.

如果弹出窗口询问您是否要使用.txt或.php作为文件扩展名。 单击使用.php按钮。

测试中 ( Testing )

You cannot test your PHP code in TextEdit. You can test it in PHP if you have it on your Mac, or you can download an emulator app from the Mac App Store—PHP Code Tester, PHP Runner and qPHP can all be used to test the accuracy of your code. Just copy it from the TextEdit File and paste it into the application screen.

您无法在TextEdit中测试PHP代码。 您可以在Mac上使用PHP进行测试,也可以从Mac App Store下载仿真器应用程序-PHP Code Tester,PHP Runner和qPHP都可以用来测试代码的准确性。 只需从TextEdit File复制它并将其粘贴到应用程序屏幕中即可。

翻译自: https://www.thoughtco.com/using-textedit-for-php-2694153

mac textedit

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值