Dreamweaver<?php& ?>特殊字符必须转义错误 [英] dreamweaver <?php & ?> special characters must be escaped error

查看:449
本文介绍了Dreamweaver<?php& ?>特殊字符必须转义错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我到处都在寻找此错误修复程序,但是没有运气。

I've hunted around everywhere for this error fix, but no luck.

使用Dreamweaver,当我将PHP代码放在括号中的HTML文件中时,例如<?php echo'为什么不起作用?'; ?> 或类似的内容,我总是收到错误消息必须转义特殊字符。我受不了了!

Using Dreamweaver, when i put the PHP code bracketing into an html file such as <?php echo 'Why does it not work?'; ?> or something similar, I always get an error "Special characters must be escaped". I can't stand it anymore!

任何帮助将不胜感激。我试图更改底部的代码类型,以便将其识别为PHP,并且不给我关于括号的麻烦,但什么也没有。

Any help would be soooo much appreciated. I've tried to change the code type at the bottom so it recognises it as PHP and doesn't give me grief about the brackets, but nothing.

我已经修改了服务器上的.htaccess文件,因此在html文件中运行php代码没有问题。

I've modified the .htaccess file on the server so I've got no problems running php code in a html file.

推荐答案


  • 转到编辑->首选项

  • 在左侧面板中突出显示衬里

  • 然后在编辑规则集中突出显示html,单击编辑并应用更改,向下滚动到显示
    spec-char-escape:true 的位置,并将其更改为 false ,编辑页面

  • 单击保存

    • Go to Edit -> Preferences
    • in left panel highlight linting
    • then in edit rule set highlight html, click edit and apply changes, scroll down to where it says "spec-char-escape": true, and change it to false, edit your page
    • click save
    • 您应该不再看到错误

      这篇关于Dreamweaver&lt;?php&amp; ?&gt;特殊字符必须转义错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆