Cov txheej txheem:
Video: Kuv yuav ua li cas khiav PHP program hauv Sublime Text?
2024 Tus sau: Lynn Donovan | [email protected]. Kawg hloov kho: 2023-12-15 23:47
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
- Unzip cov ntaub ntawv rau hauv C: / PHP /
- Qhib Sublime.
- Nias CTRL + SHIFT + P.
- Nkag mus rau Nruab Pob thiab xaiv Pob Tswj: Nruab Pob.
- Nkag mus SublimeLinter thiab nyem rau ntawm nkag mus rau nruab.
- Ua tib yam hauv kauj ruam 5 thiab 6 rau pob SublimerLinter-PHP.
- Qhib Preferences -> Package Settings -> SublimeLinter -> Chaw - Neeg siv.
Koj siv pob tswj li cas?
Kev siv
- Nias Command-Shift-P (Mac OS X) los yog Ctrl-Shift-P (Windows) los qhib Command Palette.
- Pib typing Package Control kom txog thaum koj pom cov lus txib tsim nyog.
Pom zoo:
Kuv yuav qhia li cas txog qhov kev khiav hauj lwm uas kuv muaj hauv kuv lub computer?
Nrhiav cov ntaub ntawv kev khiav hauj lwm hauv Windows 7 Xaiv qhov Pib. khawm, ntaus Computer hauv lub thawv ntawv no, right-click rau Computer, thiab tom qab ntawd xaivProperties. Hauv Windows tsab ntawv, koj yuav pom cov version thiab version ntawm Windows uas koj lub cuab yeej khiav
Kuv yuav khiav Python program hauv localhost li cas?
Option 1: Siv Python localhost Server Check thiab saib seb Python tau nruab rau ntawm koj lub tshuab.Qhib kab hais kom ua kom pom tias Python tau teeb tsa. Khiav ib Python Command hauv koj lub Web Folder los pib koj lub server hauv zos. Qhib koj lub vev xaib localhost hauv qhov browser. Nres koj tus Python SimpleHTTPServer
Kuv yuav khiav sublime code li cas?
Nias Ctrl + Ua haujlwm + B thiab xaiv lub kaw lus tsim. Nias Ctrl + B kom khiav koj cov cai. Suab zoo li koj xav tau Kev Tsim Kho - nws pib qhia meej tias cov lus txib kom khiav thaum koj nias Cmd / Ctrl + B
Kuv yuav ua li cas khiav Java program hauv Windows 10 siv cov lus hais kom ua?
2 Cov Lus Teb Tshawb xyuas koj txoj hauv kev javac ntawm Windows siv Windows Explorer C:Program FilesJavajdk1. 7.0_02in thiab luam qhov chaw nyob. Mus rau Control Vaj Huam Sib Luag. Environment Variables thiab Ntxig qhov chaw nyob ntawm qhov pib ntawm var. Kaw koj cov lus txib tam sim thiab rov qhib nws, thiab sau cov cai rau kev suav sau thiab ua tiav
Kuv yuav ua li cas khiav Python program hauv Visual Studio?
Muaj peb txoj hauv kev uas koj tuaj yeem khiav Python hauv VS Code: Txoj cai-nias nyob qhov twg hauv lub qhov rais editor thiab xaiv Khiav Python Cov Ntaub Ntawv hauv Terminal (uas txuag cov ntaub ntawv tau txais): Xaiv ib lossis ntau kab, tom qab ntawd nias Shift + Nkag mus lossis txoj cai- nyem thiab xaiv Khiav Xaiv / Kab hauv Python Terminal