[ phpeclipse-Bugs-848917 ] Broken Highlighting after single line comment //**
"SourceForge.net" <[email protected]> Sat, 02 Dec 2006 15:32:18 -0800
| Newsgroups | gmane.comp.ide.eclipse.phpeclipse.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #848917, was opened at 2003-11-25 21:03
Message generated for change (Comment added) made by gerrry
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=848917&group_id=57621
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Broken Highlighting after single line comment //**
Initial Comment:
single line comments //** with two stars are usefull
for phpdoc!
----------------------------------------------------------------------
Comment By: Gerry (gerrry)
Date: 2006-12-03 07:32
Message:
Logged In: YES
user_id=1659423
Originator: NO
Take a look at the code below:
<meta name="generator" content="PHP">
<meta name="description" content="Test text">
<?php // echo '<meta http-equiv="refresh" content="'. mt_rand(15, 90)
.'">'; ?>
<meta name="revisit" content="1 day">
<meta http-equiv="Pragma" content="no-cache">
It appears that the syntax highlighting function in phpEclipse sees the ?>
as being commented out by the // instead of giving the closing tag a higher
priority and as such the all HTML lines are not hilighted correctly until
another php closing tag is found later on in the file.
If the above lines are written as shown below then the problem doesn't
occur (although you do end up with ugly code).
<meta name="generator" content="PHP">
<meta name="description" content="Test text">
<?php // echo '<meta http-equiv="refresh" content="'. mt_rand(15, 90)
.'">';
?>
<meta name="revisit" content="1 day">
<meta http-equiv="Pragma" content="no-cache">
----------------------------------------------------------------------
Comment By: klaus (jsurfer)
Date: 2004-09-26 21:53
Message:
Logged In: YES
user_id=810238
Should work now (PHPEclipse1.1.0-2004-09-25).
Please reopen if necessary (with detailed example).
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2004-08-28 04:28
Message:
Logged In: NO
I've noticed that whenever I use an apostrophe (') within
multiple comment (/* */) the syntax highlight of next
multiple comment is stuffed + often all syntax highlighting
is somehow "switched off". Once I stopped using apostrophes
within multiple comment, it seems to work OK.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2004-08-28 03:00
Message:
Logged In: NO
I've noticed that whenever I use an apostrophe (') within
multiple comment (/* */) the syntax highlight of next
multiple comment is stuffed + often all syntax highlighting
is somehow "switched off". Once I stopped using apostrophes
within multiple comment, it seems to work OK.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2004-08-28 02:58
Message:
Logged In: NO
I've noticed that whenever I use an apostrophe (') within
multiple comment (/* */) the syntax highlight of next
multiple comment is stuffed + often all syntax highlighting
is somehow "switched off". Once I stopped using apostrophes
within multiple comment, it seems to work OK.
----------------------------------------------------------------------
Comment By: Richard Tango-Lowy (richtl)
Date: 2004-02-25 22:43
Message:
Logged In: YES
user_id=302293
The highlighting breaks for multiline phpdoc style comments
as well. The following will kill highlighting for everything
following the comment.
/**
* my function
*/
I have to close the editor and reopen in order to restore
the highlighting.
Rich
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=848917&group_id=57621
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV