NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
ctrl+enter always results in <br />


Joined: 19 Aug 2004
Posts: 8
Reply with quote
When I hit ctrl+enter the editor replies with <br />.
This is great when you make xhmtl pages, but not as good for plain html pages.
How can I tell the editor to put a simple <br>?
I'm using phped 5.0 build 5023.
View user's profileFind all posts by KnitoSend private message


Joined: 26 May 2007
Posts: 40
Reply with quote
AFAIK <br /> works for HTML as well, it is just that XHTML mandates the slash whereas HTML doesn't.
View user's profileFind all posts by RamonSSend private message
Yes, i know


Joined: 19 Aug 2004
Posts: 8
Reply with quote
Of course you are right. All of the current browsers are xhtml capable and do not bother about the space and slash.
But there are still older browsers. In the preferences it is marked as "<br>", but it issues a "<br />".

How can I change it?
View user's profileFind all posts by KnitoSend private message


Joined: 06 Apr 2007
Posts: 48
Location: Gdansk, POLAND
Reply with quote
DON'T support older browsers Smile This way they die faster and we will have easier life without need to bother them.
View user's profileFind all posts by NatanielSend private messageVisit poster's website
Giving Up


Joined: 19 Aug 2004
Posts: 8
Reply with quote
Ok, ok. I can see the big picture.

But - I do not like <br />s. I really do like <br>s much, much more.

I will not insist any more. It is okay.

Well. Rolling Eyes Rolling Eyes Rolling Eyes
View user's profileFind all posts by KnitoSend private message


Joined: 26 May 2007
Posts: 40
Reply with quote
Complain to the W3C about their XHTML specification.
View user's profileFind all posts by RamonSSend private message
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
RamonS wrote:
Complain to the W3C about their XHTML specification.


What's wrong the spec?
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website


Joined: 10 Feb 2004
Posts: 93
Reply with quote
bobwilliams wrote:
RamonS wrote:
Complain to the W3C about their XHTML specification.


What's wrong the spec?


He was responding to Knito who had said:

Quote:
But - I do not like <br />s. I really do like <br>s much, much more.
View user's profileFind all posts by gilzowSend private messageAIM Address
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
I'll note that you can continue to use <br> even in XHTML. Of course, you have to pair it with a </br> Wink

That said, if you're editing an HTML document, the editor should insert <br>, not <br />, since the latter is, I believe, invalid in an HTML document (although most browsers will accept it). Unfortunately, I've not done any HTML/XHTML editing in PhpED recently (all back-end work right now), so I can't comment on what it actually does. Where's the mentioned preference?
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website


Joined: 10 Feb 2004
Posts: 93
Reply with quote
bobwilliams wrote:
I'll note that you can continue to use <br> even in XHTML. Of course, you have to pair it with a </br> Wink

That said, if you're editing an HTML document, the editor should insert <br>, not <br />, since the latter is, I believe, invalid in an HTML document (although most browsers will accept it). Unfortunately, I've not done any HTML/XHTML editing in PhpED recently (all back-end work right now), so I can't comment on what it actually does. Where's the mentioned preference?


well, it all depends on your declared Doctype. I think it would EXTREMELY difficult for PhpEd to try to parse through your project and figure out where your doctype has been declared and then adjust itself to that type.
View user's profileFind all posts by gilzowSend private messageAIM Address
Veteran

Joined: 26 Dec 2006
Posts: 253
Location: Phoenix, AZ
Reply with quote
That's why I suggested a mode switch here:

xhtml-shortcut-inserts-t2960.html

It's not perfect since some projects can use both, but I think it would take care of the majority of situations. And if you added in support for auto-switching the mode in the presence of in-document DOCTYPEs, I think most situations would be handled.
View user's profileFind all posts by bobwilliamsSend private messageVisit poster's website


Joined: 10 Feb 2004
Posts: 93
Reply with quote
OR, if you could set up in the properties of the project or the page the intended Doctype output, the IDE could use that as an indicator of which structure of elements it should be using.
View user's profileFind all posts by gilzowSend private messageAIM Address
ctrl+enter always results in <br />
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic