Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The method of installing php plug-in in sublime2

Shulou Source: shulou.com Published: 2022-06-02 18:43:33 11月15日 Update

This article mainly introduces the method of installing php plug-in in sublime2, which is very detailed and has certain reference value. Friends who are interested must finish it!

Sublime2 to install the php plug-in method: 1, use "Ctrl+shift+p" to open package control;2, enter "install Package", enter; 3, enter "php" in the search box, click on the php plug-in you need to install in the drop-down box to install.

Install the php plug-in in sublime2

1. Install package control

Newly installed sublime does not have this option. Follow these steps to install the package control tool.

Sublime text2 as an example, open the editor, Ctrl+ `(the key to the left of 1), call up the command line, and paste the following code:

Import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path (); os.makedirs (ipp) if not os.path.exists (ipp) else None; urllib2.install_opener (urllib2.build_opener (urllib2.ProxyHandler (); open (os.path.join (ipp, pf), 'wb'). Write (urllib2.urlopen (' http://sublime.wbond.net/' + pf.replace (','% 20')). Read () Print ('Please restart Sublime Text to finish installation')

Sublime text3

Import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path (); urllib.request.install_opener (urllib.request.build_opener (urllib.request.ProxyHandler (); open (os.path.join (ipp, pf),' wb') .write (urllib.request.urlopen ('http://sublime.wbond.net/' + pf.replace ('','% 20')). Read ())

Enter and restart the editor.

2. Open package control (shortcut key Ctrl+shift+p)

3. Enter install Package and select install Package

4. Search for PHP, click the plug-in you want to install, and then install it.

These are all the contents of this article entitled "how to install the php plug-in in sublime2". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Plug-ins Zhongan methods input content articles editors search code value interests commands guys buddies tools shortcuts more knowledge industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Microsoft MySQL Xiaomi Apple