I have some twig files that are a mixture of JavaScript, HTML, and twig markup. Is there a way with Eclipse to hi-lite a section of code and format it as, say JavaScript, then hi-lite another section and format it as HTML? I tried association the file type *.twig with the JavaScript editor, but, I do not seem to get any formatting. Syntax highlighting and code completion would be good too.
Thanks, Scott
You can try to find a plugin that will support twig files and provide syntax highlighting. The Twig Eclipse Plugin looks promising as it at least seems to support HTML and twig markup together.
It is possible. If you have HTML/JS editors available (eclipse classic has them by default).
*.twig
as a new file type and then add HTML editor (in the bottom panel) to it.*.twig
file association in the bottom panel.I've checked this and it works.