Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » short tags
short tags [message #66883] Wed, 27 February 2008 13:06 Go to next message
Geraint Hywel is currently offline Geraint HywelFriend
Messages: 23
Registered: July 2009
Junior Member
Dear All:

I don't use short tags. That is to say, I always use <?php ... ?>, and
never <? ... ?>. My php.ini is configured to enforce this.

That being the case, how do I prevent this code:

<?xml version="1.0" encoding="iso-8859-1"?>

.... showing up as an error? I always see this:

Multiple annotations found at this line:
- Syntax Error
- Syntax Error: unexpected 'encoding'
- Syntax Error: unexpected 'version'
- Syntax Error

.... which is kind of annoying. Eclipse thinks that that <? is an opening
tag for some PHP, when it isn't.

Any advice would be appreciated.

Regards

G.
Re: short tags [message #67559 is a reply to message #66883] Thu, 27 March 2008 09:33 Go to previous messageGo to next message
Marijn is currently offline MarijnFriend
Messages: 19
Registered: July 2009
Junior Member
The following question was posed a while ago on this newsgroup however
nobody (was able to?) answer(ed) it. I however have the same problem and
if there's anyone who has a solution to it please let let us know :p.

Kind regards,

Marijn.

Geraint Howell wrote:
> Dear All:
>
> I don't use short tags. That is to say, I always use <?php ... ?>, and
> never <? ... ?>. My php.ini is configured to enforce this.
>
> That being the case, how do I prevent this code:
>
> <?xml version="1.0" encoding="iso-8859-1"?>
>
> .... showing up as an error? I always see this:
>
> Multiple annotations found at this line:
> - Syntax Error
> - Syntax Error: unexpected 'encoding'
> - Syntax Error: unexpected 'version'
> - Syntax Error
>
> .... which is kind of annoying. Eclipse thinks that that <? is an opening
> tag for some PHP, when it isn't.
>
> Any advice would be appreciated.
>
> Regards
>
> G.
>
Re: short tags [message #67586 is a reply to message #67559] Fri, 28 March 2008 00:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: euthanasia_waltz.yahoo.co.jp.jp

Bug 177933 -- Enable/disable short tags
https://bugs.eclipse.org/bugs/show_bug.cgi?id=177933

Bug 200395 -- Short Tags interfere with XML in a php file
https://bugs.eclipse.org/bugs/show_bug.cgi?id=200395

Bug 166764 -- XML Declaration Syntax Error
https://bugs.eclipse.org/bugs/show_bug.cgi?id=166764

Bug 195162 -- XML start tags flagging errors
https://bugs.eclipse.org/bugs/show_bug.cgi?id=195162

These are not solutions though.
Re: short tags [message #68679 is a reply to message #67586] Sat, 12 April 2008 09:40 Go to previous message
Satish Alwani is currently offline Satish AlwaniFriend
Messages: 1
Registered: July 2009
Junior Member
Totally agree. This does need to be addressed. It can cause problems
unfortunately :(

Toshihiro wrote, On 3/28/2008 6:18 AM:
> Bug 177933 -- Enable/disable short tags
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=177933
>
> Bug 200395 -- Short Tags interfere with XML in a php file
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=200395
>
> Bug 166764 -- XML Declaration Syntax Error
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=166764
>
> Bug 195162 -- XML start tags flagging errors
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=195162
>
> These are not solutions though.
>
>
Previous Topic:Implementing a formatter
Next Topic:Automatic code assist does not work
Goto Forum:
  


Current Time: Wed Apr 24 18:06:07 GMT 2024

Powered by FUDForum. Page generated in 0.02731 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top