Cov txheej txheem:

Kuv yuav ua li cas khiav PHP program hauv Sublime Text?
Kuv yuav ua li cas khiav PHP program hauv Sublime Text?

Video: Kuv yuav ua li cas khiav PHP program hauv Sublime Text?

Video: Kuv yuav ua li cas khiav PHP program hauv Sublime Text?
Video: Kheev lam thaum ntawv kuv ua siab raws koj mus 3/14/2023 2024, Hlis ntuj nqeg
Anonim

sublime -build qhov twg pob yog lub nplaub tshev qhib thaum koj xaiv Preferences -> Xauj Pob. Tom ntej no, nyem rau ntawm Cov Cuab Yeej -> Tsim System -> PHP thiab ntaus Ctrl + B khiav koj tsab ntawv (los yog Cmd + B ntawm Mac). Koj yuav tsum pom cov zis, yog tias muaj, hauv qhov tsim console uas qhib.

Kuj kom paub yog, peb puas tuaj yeem siv Sublime Text rau PHP?

Txawm hais tias tseem nyob hauv beta, Sublime Text 3 yog qhov ruaj khov thiab siv tau heev. Sublime Text tsis yog ib qho IDE (Integrated Development Environment), tab sis nrog rau kev teeb tsa ntawm ib txhais tes ntawm pob khoom / plugins koj ua tau tiag tiag ua nws zoo tagnrho editor rau kev tsim PHP hauv.

Koj khiav PHP code li cas? Rau khiav ib yam php ib cov ntaub ntawv koj xav tau rau nruab Apache web server ntawm koj lub localhost. Tsis tas li koj yuav tsum tau nruab MySQL server rau txhua qhov programming database. Koj tuaj yeem nruab cov no cais lossis muaj txoj hauv kev yooj yim kom ua tiav tib yam los ntawm kev txhim kho XAMPP. XAMPP yog ib qho yooj yim rau nruab Apache faib uas muaj MySQL, PHP thiab Perl.

Tom qab ntawd, ib tus tuaj yeem nug, Kuv yuav ua li cas ua haujlwm PHP hauv Sublime Text 3?

Nruab SublimeLinter-php ntawm Windows

  1. Unzip cov ntaub ntawv rau hauv C: / PHP /
  2. Qhib Sublime.
  3. Nias CTRL + SHIFT + P.
  4. Nkag mus rau Nruab Pob thiab xaiv Pob Tswj: Nruab Pob.
  5. Nkag mus SublimeLinter thiab nyem rau ntawm nkag mus rau nruab.
  6. Ua tib yam hauv kauj ruam 5 thiab 6 rau pob SublimerLinter-PHP.
  7. Qhib Preferences -> Package Settings -> SublimeLinter -> Chaw - Neeg siv.

Koj siv pob tswj li cas?

Kev siv

  1. Nias Command-Shift-P (Mac OS X) los yog Ctrl-Shift-P (Windows) los qhib Command Palette.
  2. Pib typing Package Control kom txog thaum koj pom cov lus txib tsim nyog.

Pom zoo: