Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351737 - Inserting tags between two <?php ?> tags causes garbled text
Summary: Inserting tags between two <?php ?> tags causes garbled text
Status: CLOSED DUPLICATE of bug 350139
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-11 13:16 EDT by Missing name CLA
Modified: 2020-05-14 11:43 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2011-07-11 13:16:07 EDT
Build Identifier: 20110615-0604

When combining HTML and PHP in the same file: standard html, followed by an opened and closed php tag, then followed by another opened and closed php tag, finally followed by more html.  If *any* type of tags that start with "<" is attempted to be added between the two php tags, the editor will hang and then all text entered afterwards will be garbled.  Clicking around in the editor places text at the location of the cursor that was not typed.

Opening and closing the php file fixes the garbled text issue, but you are still unable to add a new tag between the two tags.

Reproducible: Always

Steps to Reproduce:
Copy/Paste this into a PDT project.

------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<?php echo $this->Html->charset(); ?>
	<!-- add tag here -->
	<?php
		echo $this->Html->css(array(
			'cake.generic'
		)),
		$scripts_for_layout;
	?>
</head>
<body></body>
</html>

----------------

Attempt to add a <div> tag or another <?php ?> tag where the comment says "add tag here"
Comment 1 Zhongwei Zhao CLA 2011-07-12 03:42:01 EDT
hi,
I think it is duplicate of 350139,which has been fixed in head.
Comment 2 Roy Ganor CLA 2011-08-09 05:04:21 EDT
per Zhao's comment, closing

*** This bug has been marked as a duplicate of bug 350139 ***
Comment 3 Sylvia Tancheva CLA 2011-10-18 08:23:53 EDT
Verified.
 Ilina Stefanova