aptana html 突出显示效果不佳
我刚刚下载了 Aptana (v3.0.4),我真的很喜欢它,它比 Dreamweaver 更适合编码。到目前为止我发现的最大问题是我无法让 HTML 突出显示正常工作。
例如,我转到主题选择器并选择一个主题(在本例中为 Dreamweaver 主题,因为我已经习惯了这些颜色)。它适用于 php、javascript、css...但适用于 HTML。它不会为不同的 html 标签提供不同的颜色(例如 "a"、"img"、"form" 等)。如果我查看调色板,我可以看到这些标签分配了不同的颜色,但无论它们在调色板中具有什么颜色,它们都会采用调色板中“html meta”元素的颜色。所以基本上,所有标签都有相同的颜色,这很烦人。
有什么办法可以解决这个问题吗?我什至创建了一个新主题,复制 Dreamweaver 主题进行修改,但仍然相同...
编辑
看来这可能与范围有关。着色规则将一种颜色分配给特定范围(每个编码元素都有一个与其链接的范围)。在调色板中,每个 html 标签 ("a","img",etc) 都有一个不同的链接范围。但是,如果我使用 Aptana 的显示范围工具,所有这些元素都会显示相同的范围:text.html.basic meta.tag.block.any.htmlentity.name.tag .inline.any.html,而不是每个都显示不同的内容。因此,由于它们都有相同的范围,使用它们编辑器你不能为每个选择不同的颜色......还有其他方法吗?是否可以更改元素的分配范围?
I just downloaded Aptana (v3.0.4) and I'm really liking it, much better for coding than Dreamweaver. The big problem I've found so far is that I can't get the HTML highlighting to work properly.
For example, I go to the Theme selector and choose one theme (in this case the Dreamweaver theme, since I'm already used to those colors). It works fine for php, javascript, css... but for HTML. It won't give different colors to the different html tags (like "a", "img", "form", etc). If I look at the colors palette, I can see that those tags have different colors assigned, but no matter what color they have in the palette, they take the color of the "html meta" element in the palette. So basically, ALL the tags have the same color, which is annoying.
Is there any way to fix this? I've even created a new theme copying the Dreamweaver one to make modifications, but still the same...
EDIT
It seems that this might have something to do with Scopes. The coloring rules work assigning a color to a certain scope (each coding element has one scope linked to it). In the colors palette, each of the html tags ("a","img",etc) has a different scope linked to it. However, if I use the Show Scope tool that Aptana has, all those elements show the same scope: text.html.basic meta.tag.block.any.html entity.name.tag.inline.any.html, instead of showing a different one each one. So since they all have the same scope, using the them editor you can't choose a different color for each one... Is there any other way to do it? Is it possible to change the assigned scope of an element?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这些操作的行为类似于 CSS 选择器。
去=> entity.name.tag.inline.(form, img, p, etc.).html.
(1) 打开首选项主题面板。
(2) ADD (+) 一个NEW 元素。
(3) 选择您想要的风格。
(4) 粘贴您想要的范围选择器,例如“entity.name.tag.inline.form.html >”进入范围选择器字段...并点击“应用”。
(5) 急速改变-O!
These operations behave similar to CSS Selectors.
GO => entity.name.tag.inline.(form, img, p, etc.).html.
(1) OPEN the Preferences Theme Panel.
(2) ADD (+) a NEW element.
(3) SELECT your desired STYLES.
(4) PASTE your desired scope selector, e.g., "entity.name.tag.inline.form.html" INTO the Scope Selector FIELD… and CLICK 'Apply'.
(5) PRESTO CHANGE-O!
目前所有 HTML 标记都具有相同的范围,因此您(还)无法执行您所要求的操作。但请提交功能请求,以便将其添加到列表中。
All HTML tags currently have the same scope, so you can't (yet) do what you are asking. But please file a feature request so it can be added to the list.
也许检查 aptana 中 html 文件的默认编辑器?
不管怎样,我的 aptana 的每个标签总是具有相同的颜色。
maybe check the default editor for html files in aptana?
Anyway, my aptana had always the same color for each tag.