我如何在eclipse中扩展着色语法的颜色

时间:2021-09-22 19:42:24

In eclipse menu I go to Window -> Preference. Then, In the Preference Dialog I go to Web -> HTML Files -> Editor -> Syntax Coloring. There I have some Elements. For these Elements I can define my favorite Colors and Styles. But I can define only ONE Color for ALL Tag Names.

在eclipse菜单中,我转到Window - > Preference。然后,在Preference对话框中,我转到Web - > HTML Files - > Editor - > Syntax Coloring。我有一些元素。对于这些元素,我可以定义我最喜欢的颜色和样式。但我只能为所有标签名称定义一种颜色。

Is there any way to define different colors for different Tags? For Example, separate colors for <script>, <a>, <table> and so on?

有没有办法为不同的标签定义不同的颜色?例如,

2 个解决方案

#1


Triptych is correct, there is no way to do that without editing Eclipse's core files.

Triptych是正确的,没有编辑Eclipse的核心文件就没有办法做到这一点。

#2


I'm pretty sure you can't do that, and I must say, the very idea of it offends my sensibilities.

我很确定你不能这样做,我必须说,它的想法会冒犯我的感情。

#1


Triptych is correct, there is no way to do that without editing Eclipse's core files.

Triptych是正确的,没有编辑Eclipse的核心文件就没有办法做到这一点。

#2


I'm pretty sure you can't do that, and I must say, the very idea of it offends my sensibilities.

我很确定你不能这样做,我必须说,它的想法会冒犯我的感情。