Domanda

I am running Eclipse Indigo x64 on RedHat 6, and anytime the hover documentation pops up, the raw HTML is being displayed as plain text. This is the case with my PHP projects, where under the preferences, PHP > Code Style > Formatter (PDT Tools), I have created my own Active profile. I noticed that with the Java Formatter profile, "Eclipe [built-in]", under the comments tab, there is an option box "Format HTML tags". The PHP Formatter profile does not have a comments tab, so I believe this could be what the issue is.

Is there a way to specify this in the profile?

If anyone has resolved this issue, please let me know.

È stato utile?

Soluzione

The solution could be simply a one line addition to eclipse.ini . Here is what I did to solve it Open eclipse.ini (inside the eclipse folder) in a text editor and add

-Dorg.eclipse.swt.browser.DefaultType=webkit

to it if not already there with a different value.

Make sure you have at least libwebkitgtk-1.0.0 or libwebkitgtk-3.0.0 or both installed on your system. ( you can do sudo apt-get install libwebkitgtk-1.0.0 on Ubuntu).

My guess is the content assist view relies on the internal web browser to parse its HTML content. So if eclipse (and its settings) are not providing one then the raw HTML is displayed. This solution also fixed issues i had with other plugins that relied on internal web browsers like the Eclipse Colorer theme plugin

Hope it helps someone!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top