sublime text 3 中存在一个php 代码语法检测的插件,如果在sublime中编写php代码出现了语法错误,可以在左侧出现红色的提示标志;

如图所示:

sublime text 3  php提示语法报错插件

sublime text 3  php提示语法报错插件

那么这样的效果在sublime编辑器中是怎样做到的呢?

首先我们需要安装两个插件:

分别是:'sublimeLinter','sublimeLinter-php'

1、调出控制台

sublime text 3  php提示语法报错插件

2、输入install package进入安装程序界面

sublime text 3  php提示语法报错插件

3、搜索插件并依次安装

sublime text 3  php提示语法报错插件

4、等待自动安装完成,会有以下显示,点击用户设置

sublime text 3  php提示语法报错插件

5、添加php程序包的路径到用户设置中

sublime text 3  php提示语法报错插件

6、重启sublime

大功告成。

相关文章:

  • 2021-07-12
  • 2022-12-23
  • 2021-12-03
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
相关资源
相似解决方案