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

Bug 365837

Summary: Syntax Coloring Background for PHP Tags Colors Preceeding Whitespaces
Product: z_Archived Reporter: Jan-Raphael Chua <aeroheart.c6.notifications>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: NEW --- QA Contact:
Severity: trivial    
Priority: P2 CC: zhaozhongwei
Version: unspecifiedKeywords: ui, usability
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Jan-Raphael Chua CLA 2011-12-07 03:38:10 EST
Build Identifier: M20110909-1335

Putting opening php tags (<?php <?= <?) with whitespace preceeding them will color the preceeding whitespace with same background color as what was set with the background color for the php tags.

Ideally, there shouldn't be any coloring with the whitespace, right? Just really annoying to look at.

P.S. This also happens on auto-indentation of php tags (in the case of mixing it with HTML content)

Reproducible: Always

Steps to Reproduce:
1. (not sure of the impact but) I installed both PDT and Aptana Plug-in ('cause I wanted to look at its Coffeescript editor)
2. Set the syntax coloring for "PHP tags" with fg #0000FF and bg #ffe492
3. [Optional] Put some whitespace (tab or space or new line with just whitespaces)
4. Type the opening php tag (whichever works) afterwards (new line or current line)
5. Add/Remove some whitespace (of any kind) before the opening php tag