This topic is locked

Comment Line

11/5/2010 10:23:09 AM
PHPRunner General questions
P
procheck author

Hi,
When I add a comment line to the html in html mode, they are removed when I switch back to design mode. Is there a way to add comments?
Thanks
Al

Sergey Kornilov admin 11/6/2010

Not sure how to reproduce this.
In fact there are already comments there i.e. on the List page you can see comments like <!-- Search panel header for horizontal layouts --> and <!-- search panel and window -->

P
procheck author 11/6/2010



Not sure how to reproduce this.
In fact there are already comments there i.e. on the List page you can see comments like <!-- Search panel header for horizontal layouts --> and <!-- search panel and window -->


It happened when I was adding some custom code. To make it easier for me to keep track of my change, I put the cursor at the spot where my change was required and pressed enter to create a new blank line. So for example if I was adding code between two table data tags <td> (I pressed enter here)
<!-- start my code -->

new code

<!-- end my code -->
existing code

</td>
Then when I went back to design mode, PHPRunner would reformat & remove the white space and my comment lines. The code itself was not deleted. It does not happen every time.

Sergey Kornilov admin 11/8/2010

I know why this happening though don't know how to fix this.
This happens because Internet Explorer HTML editing engine formats HTML it's own way dropping what it thinks it's not necessary. Unfortunately we do not have much control over it.

P
procheck author 11/8/2010

I'll need to delete the white space before I switch back & hopefully there will be no problems.

Thanks