Issue 14418 - php tags should not be replaced
Summary: php tags should not be replaced
Status: CLOSED DUPLICATE of issue 38171
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 Beta
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: bettina.haberer
QA Contact: issues@sw
URL:
Keywords:
: 11711 13790 38171 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-05-13 17:58 UTC by zathros
Modified: 2005-01-06 03:06 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description zathros 2003-05-13 17:58:52 UTC
Whenever I use the html editor to open an html file with php tags and modify
something (specifically table column widths), my php tags are messed up. It
seems that <?php and ?> are not recognized because the tags are replaced with
&lt;?php and ?&gt;

If possible, it would be great if php tags could be recognized and not changed
by the html editor.
Comment 1 Unknown 2003-05-21 16:38:33 UTC
Noted this problem myself in 1.1beta.  The HTML editor doesn't 
recognize the <? and ?> tags for embedding PHP in a page, and instead 
converts the < character to &lt; ...

The HTML editor is great otherwise, for visual design of static web 
pages.  So it'd be very cool to see it support this kind of PHP 
script!

Tim Thulson
Comment 2 stefan.baltzer 2003-09-08 17:30:49 UTC
SBA: Reassigned to Bettina from the User Experience team for consideration.
Comment 3 eric.savary 2003-10-13 16:33:55 UTC
*** Issue 13790 has been marked as a duplicate of this issue. ***
Comment 4 eric.savary 2003-10-13 16:36:33 UTC
*** Issue 11711 has been marked as a duplicate of this issue. ***
Comment 5 mandreiana 2004-10-16 10:03:05 UTC
What extention does the file have? If it's .php, ooo opens it as text. If it's
.html, then it opens it as html and tags aren't preserved, which is correct. 

I think this issue should be closed as invalid, since ooo behaves as a html
editor, not as an php IDE.
Comment 6 zathros 2004-10-20 07:42:41 UTC
Up through ooo 1.1.2 .php files are not opened in text mode as far as I can
tell, and all php tags are lost. I have not been able to check 1.1.3 yet. 

Furthermore, I disagree on the point about ooo not preserving php tags in html
mode. This behavior has nothing to do with behaving like a php IDE or not.
Simply because ooo does a pretty good job opening and editing HTML and because
HTML and PHP code can be seen side by side, I believe that ooo should be able to
handle this case without breaking PHP. Please note that this issue is considered
an "enhancement". That is exactly how I view it. The current behavior does not
break HTML, so this is not a bug. However, a useful additional feature would be
to correctly preserve php tags within HTML mode. 
Comment 7 eric.savary 2004-12-01 12:02:30 UTC
*** Issue 38171 has been marked as a duplicate of this issue. ***
Comment 8 eric.savary 2005-01-06 03:05:34 UTC
.

*** This issue has been marked as a duplicate of 38171 ***
Comment 9 eric.savary 2005-01-06 03:06:03 UTC
closed