I’m using CodeIgniter in Eclipse and I get these “no start tag (body)” error because I start my <body> tag in the header and close it in the footer.
Does anybody knows a way to make Eclipse recognize these tags throughout the all project?
Thanks
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 27, 2009 6:19am
Subscribe [1]#1 / May 27, 2009 6:19am
I’m using CodeIgniter in Eclipse and I get these “no start tag (body)” error because I start my <body> tag in the header and close it in the footer.
Does anybody knows a way to make Eclipse recognize these tags throughout the all project?
Thanks
#2 / May 27, 2009 6:28am
I used to have that problem before (I now use a single master template with sub views)
From what I remember, you can make it permanently ignore that given error, or all types of those errors (although you want to know about other non matching tags so avoid that)
I can’t remember where I made these changes, and don’t have Eclipse PDT on my work machine, so can’t check now…
#3 / May 27, 2009 6:38am
In fact I can delete that specific error by rigth clicking it in the Problems tab.
And this doesn’t affect similar errors.
But it would be nice if Eclipse could recognize the start tags from header to footer…
#4 / May 27, 2009 6:46am
The reason eclipse doesn’t know, is cause it doesn;t understand the way views are loaded… it has no way to know the 2 view files are related
#5 / May 27, 2009 7:43am
Thanks Dam1an.
Let’s hope this can be implemented in the future…
Just curious, do know of any other editor that have this capacity?
#6 / May 27, 2009 7:56am
I don’t think any do :(
With a little hacking, I’ve managed to get a setup with Eclipse PDT that works very well with CI
http://ellislab.com/forums/viewthread/115310/#583621
#7 / May 27, 2009 8:24am
I’ll take a look.
Thank you very much!