7

Hello How can I enable syntax highlighting for HTML/CSS/JS in Eclipse I am mainly developing in python using the PyDev package but right now I am creating Cheetah templates and they are very hard to read unhighlighted.

Any plugin/package suggestions related to Cheetah or just highlighting any file as html would be greatly appreciated.

thank you.

BillPull
  • 8,335
  • 15
  • 54
  • 93

1 Answers1

5

Can I somehow trick Eclipse into treating .tmpl files as if they were .html?

It's not a trick.

Under Windows -> Preferences, General -> Editors -> File Associations, you can associate *.tmpl files with your HTML editor.

Gilbert Le Blanc
  • 45,374
  • 5
  • 61
  • 107
  • Thank you what is the editor for HTML in eclipse I have "Schema html editor" but it does not work I feel like this is on the right path but im still missing some piece or plugin – BillPull Mar 29 '11 at 19:27
  • 1
    @user564559: The standard HTML editor for Eclipse is the Eclipse Web Developer Tools. These tools are a part of the Eclipse Web Tools Platform. It shows up in my File Associations list as HTML Editor. – Gilbert Le Blanc Mar 29 '11 at 19:31
  • Ok I got that doesnt seem to want to work with .tmpl but at least my .css files are now syntax highlighted thanks – BillPull Mar 29 '11 at 20:00
  • 3
    Uh .. I'm confused. Did someone edit the original question? There's no mention of .tmpl files in it. – bergie3000 Jan 07 '13 at 23:58
  • 2
    If you're trying to determine how to enable syntax highlighting for HTML, go to "Help" > "Install New Software" Choose to work with the site "http://download.eclipse.org/releases/indigo", Expand "Web, XML and Java EE development", Check "Web Page Editor" and click Next to continue with the install. (thanks @Andrew) I also installed "JavaScript Development Tools" in a very similar fashion, and things seem to be working well. – bergie3000 Jan 08 '13 at 00:07