Help - Search - Members - Calendar
Full Version: *another* code for codes...
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
crazy_goat_blackie
a while back i asked for a code to put in a code in diary x so it showed up as the code itself isntead of converted. szeh (?) i believe it was gave me the <textarea> code, but the thing about this is, apparently, when i put the code inside of these tags, it messes things up a bit - puts in <br> tags where i have spaces and does other weird things, so that by the time the person who's supposed to get the template code gets it, the template doesn't turn out right.

....is there another code i can use that won't mess things up? pinch.gif
Eryi
Isn't this a Xanga Issue?
crazy_goat_blackie
...no, it's not...it's just for general coding. in this case, i'm using it with diary-x....
add1cted2f1re
the <textarea> code always works for me....

may i see an example of WHAT its doing?
crazy_goat_blackie
http://crazygoat.diary-x.com/journal.cgi?entry=20051101

^^ it's doing it there. like if you scroll to the bottom, there's a <br> after </html> because i had an extra line there.
mipadi
QUOTE(crazy_goat_blackie @ Nov 11 2005, 4:14 PM)
http://crazygoat.diary-x.com/journal.cgi?entry=20051101

^^ it's doing it there. like if you scroll to the bottom, there's a <br> after </html> because i had an extra line there.
*

You put a <br> tag in the code in the textarea. Textarea show whitespace, meaning if you put line breaks in the textarea tag, it will show up; you don't need <br> tags for line breaks. So entering this:
HTML
<textarea>Hi,

My name is
Joe.</textarea>

will result in this code:

Hi,

My name is
Joe.


in the textarea.
crazy_goat_blackie
but i didn't put in extra <br> tags! ugh...it was like this:

<html>

<tag>

and it shows up like this

<html><br>

<tag>

see??
mipadi
Well, somewhere along the line you coded <br> tags into the HTML, which will literally show up when placed between <textarea>. Just take them out and replace them with actual line breaks (i.e. press the Enter key).
crazy_goat_blackie
...............i did put in white space breaks with the enter key in the first place, and it's still sticking in <br> tags. *sigh*
crazy_goat_blackie
well, i figured out the problem. it was d-x. in the options > journal panel they have <br> set to show up after every line. i took this out and my codes in the <textarea> tags worked fine, but now all my entries are smushed together...bleh. it's kind of a hassle putting in all the <br> tags myself. i know there are other diary x design sites that have some way of offering the codes without this issue...is anyone familair with d-x who might be able to help me?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.