导航:首页 > 编程语言 > sublime打开php浏览器打开

sublime打开php浏览器打开

发布时间:2022-09-24 17:48:20

⑴ 如何能让php文件在sublime text中用浏览器打开后预览

ctrl+b打开浏览器,假设你的www目录为D:\\www\\

编辑sublime Text/Data/Packages/User/open_broswer.py
url_map = {
'D:\\www\\' : 'http://localhost/',
}

[注意] D:\\www\\应为你的localhost指向的真实目录

点击-->Preferences->Key Bindings->User
在出现的界面中,加入如下内容(如果已经有就不用再加了):
[
{ "keys": ["ctrl+b"], "command": "open_browser" }
]

⑵ sublime页面怎么在浏览器打开

sublime页面在浏览器打开的方法

⑶ sublime怎样设置f12打开浏览器

sublime用快捷键打开浏览器方法如下:
一、安装插件SideBarEnhancements打开Package Control找下SideBarEnhancements即可快速安装
ctrl+shift+P 转 Package Control: install Package 查找SideBarEnhancements选择即可

二、设置快捷键

{
"keys": ["f1"],
"command": "side_bar_files_open_with", "args": {"application": "D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", "extensions": ".*", "paths": []}
},
{
"keys": ["f2"],
"command": "side_bar_files_open_with", "args": {"application": "C:\\Users\\delll\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe", "extensions": ".*", "paths": []}
},
{
"keys": ["f4"],
"command": "side_bar_files_open_with", "args": {"application": "C:\\Program Files\\Internet Explorer\\iexplore.exe", "extensions": ".*", "paths": []}
},
{
"keys": ["f5"],
"command": "side_bar_files_open_with", "args": {"application": "C:\\Program Files (x86)\\360\\360safe\\360AppLoader.exe", "extensions": ".*", "paths": []}
}
打开Key Binding-user复制上面代码,然后修改为浏览器路径,重启sublime即可。
1.f3是查找下一个的快捷键,设置时小心冲突

2.选中图标右键—属性如下,记得把\改为\\即可

⑷ php运行环境弄好了,在sublime下编辑php文件,怎么在浏览器打开

将你编辑的PHP文件放在你的php环境的网站目录中,一般为wwwroot 、htdoc、web等

⑸ sublimetext3中编写php时中文显示正常,在浏览器中打开后就变成了乱码

应该是你代码的编码和网页的编码格式不一样。如果你网页上面的编码用的charset=utf8,那么一般是你sublimetext3的编码不对。你保存代码的时候file->save with encoding->utf8试试。总而言之就是你代码的文本编码和网页解析文本编码不一致。

⑹ sublime怎么用快捷键打开浏览器

工具原料:电脑+win8

sublime用快捷键打开浏览器方法如下:

一、安装插件SideBarEnhancements打开Package Control找下SideBarEnhancements即可快速安装

ctrl+shift+P 转 Package Control: install Package 查找SideBarEnhancements选择即可

2.选中图标右键—属性如下,记得把改为\即可

⑺ 如何能让php文件在sublime text中用浏览器打开后预览

配置在Chrome,Firefox中打开
安装 SideBarEnhancements(packages control-> 输入install packages-> SideBarEnhancements能找到这个插件)
然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的html文件上右击,找到 open width -> edit applications
然后在这里边设置firefox打开的方式。

⑻ 如何能让php文件在sublime text中用浏览器打开后预览

配置在Chrome,Firefox中打开

安装 SideBarEnhancements(packages control-> 输入install packages-> SideBarEnhancements能找到这个插件)
然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的html文件上右击,找到 open width -> edit applications
然后在这里边设置firefox打开的方式。

application : 路径要修改为自己默认安装的路径。
[
{"id": "side-bar-files-open-with",
"children":
[
//application firefox
{
"caption": "firefox",
"id": "side-bar-files-open-with-firefox",

"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
"extensions":".*" //any file with extension
}
},

{"caption":"-"},
{
"caption": "chrome",
"id": "side-bar-files-open-with-chrome",

"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
"extensions":".*" //any file with extension
}
}
]
}
]
设置快捷键
Key bindings -> User

[
{ "keys": ["ctrl+shift+c"], "command": "_path" },
{ "keys": ["alt+f12"], "command": "open_in_browser" },
{ "keys": ["f12"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
"extensions":".*" //any file with extension
} },
{ "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
"extensions":".*" //any file with extension
}
}

]

阅读全文

与sublime打开php浏览器打开相关的资料

热点内容
靠算法买彩票 浏览:490
程序员考核d 浏览:237
自助游中国pdf 浏览:739
安卓p40是什么手机 浏览:80
24cxx编程器 浏览:584
阴阳师如何查看哪个服务器有ID 浏览:309
公务员照片压缩 浏览:451
编译的时候怎么找未定义的函数 浏览:345
有什么我的世界服务器 浏览:299
服务器亮绿灯是什么意思 浏览:630
python画的图如何保存高清版 浏览:492
10的搭接还用加密吗 浏览:366
bytedance这个文件夹是什么意思呢 浏览:591
算法站的客体 浏览:79
src文件夹c语言怎么运行 浏览:26
怎么把已安装的app放到桌面 浏览:949
如何查看苹果手机app是否取消订阅 浏览:775
u盘加密之后手机可以打开吗 浏览:48
单片机串口发射怎么回事 浏览:480
程序员假装自己很忙 浏览:800