开发者

Syntax coloring of html files in eclipse

We use a custom cgi solution, which makes use of %-tags in html-files:

<% keyword some.stuff() %>

Does anyone know an easy way to get syn开发者_高级运维tax coloring in eclipse for these tags?


HTML syntax coloring settings are in:

Preferences-Web-HTML files-Syntax coloring

Just change and apply your changes, and take a look at the preview window below to see what part is changed.

The reason I don't list the specific location of the setting you want, is that I cannot figure out what kind of code you are writing in your project. HTML files can contain a variety type of contents, like java code in .jsp and javascript, so you may have to check other syntax coloring settings related to the type of code you use. For example, .jsp syntax coloring settings are in:

Preferences-Web-JSP files-Syntax coloring

But the effect can show in a html file.

You can search syntax coloring in Eclipse Preferences window to get a full list of such settings.


My best bet would be Eclipse Colorer plug-in. It is a very elegant plugin based on extensive Colorer library.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜