Search code examples
htmleditortemplatesphpbb

Eclipse HTML editor for HTML template files


I'm trying to edit phpbb HTML template file with Eclipse Ganymedes version 3.4.1 containing Web Developer Tools.

These template files contain HTML markup with template variable marks in form {variable_name}. Now, when trying to open such file, Eclipse trys to validate also these template variable marks.

For example template contains

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" /> 

After opening Eclipse shows on editor body:

Unsupported Character Body
Character encoding "{S_CONTENT_ENCODING}" is not supported by this platform.
<button>Set encoding...</button>

How to solve this using WTP or is there any better editor for template editing purpose ?


Solution

  • Eclipse is trying to determine the text encoding from your meta tags and fails.

    To override this behavior open the file in eclipse so you can see the error. Open the File menu and choose Properties (Alt-Enter) and eclipse will show you the properties dialog for the file where you can change the text file encoding.

    I don't know if this can be disabled for all the files.