Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350827

Summary: ASP Tag highlighting breaking HTML highlighting
Product: z_Archived Reporter: Ed Chipman <edchipman>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: zulus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
ASP Tag highlighting breaking HTML highlighting example none

Description Ed Chipman CLA 2011-06-30 09:37:55 EDT
Created attachment 198910 [details]
ASP Tag highlighting breaking HTML highlighting example

Since I updated to Eclipse 3.7 or Indigo, When ever I open files that contain asp tags along side html the editor starts highlighting weird after the first asp tag. I'm using SilverStripe as a CMS and its template framework uses <% and %> to define its template syntax. Having the html highlighting is really nice but this is a weird one. Any ideas on where/how I can turn off PDT 3.0 using asp tags? If it makes any difference my workspace is the same as the one I used in 3.6. It looks like the highlighter is interpreting it as a opening php tag because it can be closed using a closing php tag ?> then the syntax highlighting for html works fine after.

img97.imageshack.us/img97/6034/unled2ol.jpg
Comment 1 Zhongwei Zhao CLA 2011-07-01 00:18:13 EDT
hi,you can turn off PDT 3.0 using asp tags by removing this line use_asp_tags_as_php=true in file yourproject/.settings/org.eclipse.php.core.prefs.
Comment 2 Ed Chipman CLA 2011-07-01 13:39:57 EDT
Actually that line isn't even present in one project's "org.eclipse.php.core.prefs" file and in another it's set to false.
Comment 3 Zhongwei Zhao CLA 2011-07-11 04:14:54 EDT
hi,

How about set it to true?
and which file use_asp_tags_as_php=false is in?
Comment 4 Ed Chipman CLA 2011-07-11 08:11:44 EDT
It's in the projects .settings/org.eclipse.php.core.prefs and setting it to true or removing that line has no effect. A <% still starts the php highlighting.
Comment 5 Dawid Pakula CLA 2018-02-09 07:34:30 EST
You can enable ASP tags in PHP < 7.0. True ASP tags isn't supported, and never will be.