简体   繁体   English

eclipse 2020-06 语法突出显示不适用于 php 或 ZFC35FDC70D5FC69D2EZE368 文件中的内联 javascript

[英]eclipse 2020-06 syntax highlighting not working with inline javascript in php or html file

I had an old version of eclipse - probably 2018-12 - and all was good.我有一个旧版本的 eclipse - 可能是 2018-12 - 一切都很好。 Then I upgraded it because it was showing errors for some new syntax.然后我升级了它,因为它显示了一些新语法的错误。

Now, javascript syntax highlighting and other associated things like automatic indent, brackets assistance etc are working with.js files, but when I write any javascript inside a php or html file using script tags, the code is simply black text. Now, javascript syntax highlighting and other associated things like automatic indent, brackets assistance etc are working with.js files, but when I write any javascript inside a php or html file using script tags, the code is simply black text.

I read the other questions about this issue, but they are all about it not working at all.我阅读了关于这个问题的其他问题,但它们都是关于它根本不起作用的。 It works for me, but only in.js files.它适用于我,但仅适用于 in.js 文件。

I did try uninstalling wild web developer and installing JSDT from 2020-03, but it was no help.我确实尝试从 2020-03 卸载野生 web 开发人员并安装 JSDT,但这没有帮助。 Then I upgraded the JSDT to latest version - still not working.然后我将 JSDT 升级到最新版本 - 仍然无法正常工作。 Finally I uninstalled eclipse completely and reinstalled the eclipse for PHP package.最后,我完全卸载了 eclipse 并重新安装了 eclipse 的 PHP ZEFE90A8E6036A7C840E76D8D。 It has wild web developer by default.默认情况下,它有野生 web 开发人员。 Still the same behaviour.仍然是相同的行为。

How can I solve this?我该如何解决这个问题?

Install the new "Eclipse Web JavaScript Developer Tools" feature (and the related one for JSPs if you need it) from the 2020-09 prerelease site, https://download.eclipse.org/releases/2020-09/ . Install the new "Eclipse Web JavaScript Developer Tools" feature (and the related one for JSPs if you need it) from the 2020-09 prerelease site, https://download.eclipse.org/releases/2020-09/ . They were included in the 2020-06 Enterprise Java package, but not completely set up for installing later using the 2020-06 update site.它们包含在 2020-06 Enterprise Java package 中,但未完全设置为稍后使用 2020-06 更新站点进行安装。 2020-06 also lost the support for task tags in JavaScript files as Wild Web Developer doesn't support them; 2020-06 也失去了对 JavaScript 文件中任务标签的支持,因为 Wild Web 开发人员不支持它们; it'll be back in the final 2020-09 release.它将在 2020-09 的最终版本中回归。

JSP 的 Eclipse Web JavaScript 开发者工具和相关特性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM