Netbeans:自动格式 - 从 PHP 速记代码中删除空格
发布于 2024-12-09 11:09:35 字数 239 浏览 1 评论 0 原文

下图中红圈处, 使用自动格式会在 = 和 $ 之间添加一个空格。 你如何删除该空间,以便 它看起来像

其他问题:如何禁用那些绿色突出显示 (绿色圆圈)HTML 代码?这些亮点到底意味着什么?

在此处输入图像描述

添加

In the red circle in the image below,
using auto format adds a space between = and $.
How do you remove that space so that
it looks like <?=$foo on auto format?

Additional question: How do you disable those green highlights
(circled in green) for HTML code? What does those highlights mean anyway?

enter image description here

Add

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

z祗昰~ 2024-12-16 11:09:35

Netbeans 至少在 7.1.2 版本中修复了此问题(可能更早,但绝对不是在 7.0.1 上)。

要修复,请转到:工具>选项>格式化> PHP>空格>取消选中 After Short PHP TagBefore Close PHP Tag

Netbeans has fixed this issue at least in version 7.1.2 (possibly earlier but definitely not on 7.0.1 ).

To fix go to: Tools > Options > Formatting > PHP > Spaces > Uncheck After Short PHP Tag and Before Close PHP Tag

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文