Sublime text 2 - 更改标签颜色 [英] Sublime text 2 - change tags color
本文介绍了Sublime text 2 - 更改标签颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Sublime Text 2 - 我想让它成为我的默认工作程序.
I am using Sublime Text 2 - which i want to make it my default program for work.
我已经安装了 Dreamweaver 主题 - 但我有一些问题:
I have install the Dreamweaver Theme - but i have some issues:
我不知道如何更改标签(a、img、form 等)的颜色.所有颜色都相同,不像 Dreamweaver CS4(见图).
I dont know how to change the colors for tags (a, img, form, etc). There are all in the same color, not like in Dreamweaver CS4 (see pic).
如何为每个颜色更改颜色?
How can i change colors for each?
我的主题代码中有这个:
I have this in my theme code:
<dict>
<key>name</key>
<string>html img tag</string>
<key>scope</key>
<string>text.html meta.tag.img - string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#6d232eff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>html form tag</string>
<key>scope</key>
<string>text.html meta.tag.form - string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ff9700ff</string>
</dict>
</dict>
但是当我更改字符串标签中的颜色时,它不起作用 - 是否缺少某些东西?
But when i change the colors in the string tag, not working - is there something missing?
提前谢谢
推荐答案
试试这个:
<dict>
<key>name</key>
<string>Tag name</string>
<key>scope</key>
<string>entity.name.tag</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#EA0000</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tag start/end</string>
<key>scope</key>
<string>punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#EA0000</string>
</dict>
</dict>
这篇关于Sublime text 2 - 更改标签颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文