Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » PHP formatter inserts unwanted whitespace in web pages
PHP formatter inserts unwanted whitespace in web pages [message #1219919] Fri, 06 December 2013 13:26 Go to next message
Eclipse UserFriend
Hi all, I was refered here from e.newcomer with the following question:

Because the server my website is on does not support SSI, but does
support php, all my web pages are .php, although they are mainly html
with just an occasional <?php include. Anyway, it is thus opened with
the php editor (I think), which started introducing a space after each
html tag a while ago, even when this is unwanted, e.g. after <a>. How
can I change this back?

Example:
===============
<li>
<a
href="Wiskunde/Stattiestiek/pdfs/toets 2 stattiestiek 9A 2011.pdf"
title="toets stattiestiek en misleiden" type="application/pdf">Toets
statistiek en misleiden</a>
, gebaseerd op Getal en Ruimte en toets van Bart (
<a type="text/x-tex"
href="Wiskunde/Stattiestiek/bronbestanden/toets 2 stattiestiek 9A
2011.tex"
title="TeX-bronbestant voor toets">TeX-bronbestand</a>
).

Note the unwanted spaces and linebreaks before and after <a> which is
immediately followed by , or ) or preceded by (

Cheers, H.
--
Hendrik Maryns
http://hendrikmaryns.name
===========
signature.asc?!?
http://en.wikipedia.org/wiki/PGP
http://mindprod.com/project/mailreadernewsreader.html
Re: PHP formatter inserts unwanted whitespace in web pages [message #1219941 is a reply to message #1219919] Fri, 06 December 2013 20:34 Go to previous messageGo to next message
Eclipse UserFriend
The only case I can reproduce such a formatting is...
Preferences->Web->HTML Files->Editor, remove all 'Inline Elements'.

Before:
index.php/fa/16956/0/
After - by default:
index.php/fa/16957/0/
After - configuring preferences:
index.php/fa/16958/0/

[Updated on: Fri, 06 December 2013 20:35] by Moderator

Re: PHP formatter inserts unwanted whitespace in web pages [message #1220532 is a reply to message #1219941] Thu, 12 December 2013 06:47 Go to previous message
Eclipse UserFriend
Hi,

Op 07-12-13 02:34, schreef Toshihiro Izumi:
> The only case I can reproduce such a formatting is...
> Preferences->Web->HTML Files->Editor, remove all 'Inline Elements'.

I have no ‘Editor’ option there, since I do not have the HTML editor
installed. I use the PHP editor.

Cheers, H.
--
Hendrik Maryns
http://hendrikmaryns.name
===========
signature.asc?!?
http://en.wikipedia.org/wiki/PGP
http://mindprod.com/project/mailreadernewsreader.html
Previous Topic:Eclipse crashes
Next Topic:An error occurred while automatically activating bundle org.eclipse.php.debug.core
Goto Forum:
  


Current Time: Sat Jul 05 23:38:57 EDT 2025

Powered by FUDForum. Page generated in 0.05017 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top