小编Gly*_*yph的帖子

如何在PHP字符串和heredoc语法中获得HTML语法高亮?

我正在使用Sublime Text和Pastel on Dark主题.我选择的语言是PHP.如何在PHP字符串和heredoc语法中获得HTML语法高亮?

html php syntax-highlighting sublimetext2

9
推荐指数
1
解决办法
2326
查看次数

PhpStorm说PostgreSQL数据库不存在?

我可以protomolecule通过PHP脚本使用这些完全相同的凭据连接到数据库.尝试在PhpStorm中进行设置失败,如图所示.

如果我将protomolecule数据库更改为默认postgres数据库,它在PhpStorm中连接就好了.我无法弄清楚为什么用户只能连接到postgres其他东西.

我已经尝试设置新用户和新数据库无济于事.

PhpStorm数据源和驱动程序窗口

编辑:根据要求添加下面的工作PHP脚本设置.

array(
    'database' => 'protomolecule',
    'driver' => 'Pgsql',
    'hostname' => 'localhost',
    'username' => 'postgres',
    'password' => 'xxxxxxxxxxxxx',
    'port' => '5432'
)
Run Code Online (Sandbox Code Playgroud)

postgresql phpstorm

5
推荐指数
1
解决办法
452
查看次数