Is it possible to enable task tags like //TODO and //FIXME for html files in Eclipse? I’ve already checked in Eclipse’s settings and there is no “Task Tags” section for HTML files. The issue is that I’m not really using these task tags in the html itself; they’re in blocks of javascript inside the html files. It would be nice to somehow capture them even though they reside in an html file.
Is it possible to enable task tags like //TODO and //FIXME for html files
Share
Unfortunately Eclipse is not able to recognize Task Tags for JavaScript embedded in HTML. You can however use HTML comments to add Task Tags around the blocks of JavaScript. For example:
Would result in the following descriptions appearing in your Tasks view:
To enable Task Tags in Eclipse go to Preferences > General > Editors > Structured Text Editors > Task Tags.
(Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 1 Build id: 20110916-0149)