Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,487 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,690 people online right now. Registration is fast and FREE... Join Now!




Testing html break

 
Reply to this topicStart new topic

Testing html break, seems i am having an issue.

SpaceMan
6 Mar, 2008 - 09:14 AM
Post #1

D.I.C Regular
Group Icon

Joined: 20 Feb, 2003
Posts: 270

when i post html breaks in code tags, it goes next line when it posts.


php tag
php

// using '
echo '<br>';
//using "
echo "<br>";



code tag
CODE

// using '
echo '<br>';
//using "
echo "<br>";



apears is just the code=php doing it.

php


echo "\r\n";



CODE


echo "\r\n";


php

<?
// using '
echo '<br>';
//using "
echo "<br>";
?>


intersting, i hit fastrely and it apends my originall post, nifty

This post has been edited by SpaceMan: 6 Mar, 2008 - 09:08 AM
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Testing Html Break
6 Mar, 2008 - 09:32 AM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,212



Thanked: 216 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
This is with the editor on the site, not related to PHP itself. Moved.
User is online!Profile CardPM
+Quote Post

SpaceMan
RE: Testing Html Break
6 Mar, 2008 - 09:40 AM
Post #3

D.I.C Regular
Group Icon

Joined: 20 Feb, 2003
Posts: 270

removed, i missunderstood

but is related to people that post php code in this forum.


This post has been edited by SpaceMan: 6 Mar, 2008 - 09:48 AM
User is offlineProfile CardPM
+Quote Post

capty99
RE: Testing Html Break
6 Mar, 2008 - 09:43 AM
Post #4

the real kya
Group Icon

Joined: 26 Apr, 2001
Posts: 9,164



Thanked: 16 times
Dream Kudos: 550
My Contributions
spaceman,. chill out dude, he moved a post so it will actually get a response for you.

This post has been edited by capty99: 6 Mar, 2008 - 09:44 AM
User is offlineProfile CardPM
+Quote Post

thehat
RE: Testing Html Break
6 Mar, 2008 - 09:45 AM
Post #5

D.I.C Head
Group Icon

Joined: 28 Feb, 2008
Posts: 217


Dream Kudos: 100
My Contributions
The indent tags don't work as expected either (as css)...

css

someTag {

indented-rule:fail;

}

User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Testing Html Break
6 Mar, 2008 - 09:47 AM
Post #6

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,212



Thanked: 216 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
Whoa man, chill a bit. I am only saying it is the editor because of your statement...

QUOTE
apears is just the code=php doing it.


Code tags and the "=php" are part of a new syntax highlighting feature on DIC. It isn't your code, it is how the highlighting editor is interpreting your code. It displays it in a HTML feature and you know what <br> is part of? You guessed it, a break to a new line in HTML. Hence the reason it goes to a new line when displayed.

It is also the reason the regular code tag itself is not having troubles, it is not transforming it to HTML.

So chill out, don't get your panties in a bunch. Moving your topic is not the end of the world. Especially when it was moved for a reason you were obviously not aware of. wink2.gif
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 07:25PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month