当前位置: 动力学知识库 > 问答 > 编程问答 >

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 syntax coloring in eclipse for these tags?

网友答案:

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

网友答案:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: