13 replies [Last post]
purus
Offline
Regular
Last seen: 11 years 19 weeks ago
Joined: 2005-10-17
Posts: 45
Points: 0

Just tried to post some code in a new there (http://csscreator.com/node/23381) and it came out all messed up as if the page was actually parsing the HTML. I enclosed it in code tags as suggested and even changed all the <'s and >'s to &lt; and &gt;. Sorry to screw it up, but I did everything I could to post it correctly and I'm a bit stumped as to how to fix it...

burlster
burlster's picture
Offline
Leader
Bournemouth
Last seen: 2 years 3 weeks ago
Bournemouth
Timezone: GMT+1
Joined: 2007-05-31
Posts: 693
Points: 45

Oopss

I have seen this before, and I think it's almost definitely to do with the opening and closing of the code tags.

And you definitely want to enclose the open/close code tags in normal '<' and '>', not the proper ways of drawing them you are doing Tongue

Give it a try...

:bigoops:

Have YOU said Hello yet?
The CSSCreator Hello Thread

purus
Offline
Regular
Last seen: 11 years 19 weeks ago
Joined: 2005-10-17
Posts: 45
Points: 0

Hmm... Can't seem to find an

Hmm... Can't seem to find an edit link. Is editing disabled?

I definitely used the literal <code> tag, not the &lt;code&gt; version though.

burlster
burlster's picture
Offline
Leader
Bournemouth
Last seen: 2 years 3 weeks ago
Bournemouth
Timezone: GMT+1
Joined: 2007-05-31
Posts: 693
Points: 45

Hidden edit

Edit is there! Scroll to the bottom of your own code. That also means it's definitely to do with the code tag not being closed properly. If you can't find it, perhaps use your browsers 'find' command to locate the edit link?

Have YOU said Hello yet?
The CSSCreator Hello Thread

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 40 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

You didn't close the tag! I

You didn't close the tag!

I would amend things but you've escaped all the <> so it displays :shrug: btw you only need escape the less than angle bracket

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

purus
Offline
Regular
Last seen: 11 years 19 weeks ago
Joined: 2005-10-17
Posts: 45
Points: 0

It appears I can only edit

It appears I can only edit my replies to a topic, not an original topic post... Or am I missing something?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 40 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

That's possible, hard to

That's possible, hard to know for sure as I get too edit regardless

I'll correct it but just this once mind Wink

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

burlster
burlster's picture
Offline
Leader
Bournemouth
Last seen: 2 years 3 weeks ago
Bournemouth
Timezone: GMT+1
Joined: 2007-05-31
Posts: 693
Points: 45

Oh dear

This forum has been so quiet today, that I actually got excited about the 'broken forum' and the 'search for the fix'.

... I need a new job...

Have YOU said Hello yet?
The CSSCreator Hello Thread

purus
Offline
Regular
Last seen: 11 years 19 weeks ago
Joined: 2005-10-17
Posts: 45
Points: 0

Oops, noticed the edit link

Oops, noticed the edit link for the original topic post is located above the topic. Sorry about that. I think I fixed it... Thanks for the help.

purus
Offline
Regular
Last seen: 11 years 19 weeks ago
Joined: 2005-10-17
Posts: 45
Points: 0

Ugh... It appears to

Ugh... It appears to actually be breaking when I post the CSS code, not the HTML part. Is there something I should know about posting CSS? I enclosed it in the code tags but it's still breaking everything...

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 40 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Puras your stuck between a

Purus your stuck between a rock and a hard place now.

You can't ad the closing code tag as it then renders the entities as written, you will either have to leave the close tag off or remove all the entities.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

purus
Offline
Regular
Last seen: 11 years 19 weeks ago
Joined: 2005-10-17
Posts: 45
Points: 0

And now I am getting the

And now I am getting the following error when I try to edit it:

Quote:
This content has been modified by another user, changes cannot be saved.

Should I just make a new post and start over? Am I missing something here or is it always this hard to post code?

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 40 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

No it isn't that hard to

No it isn't that hard to post code!!!!!!!!!!!!!!!!!!!!!!!!

Please leave it I'll adjust things.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

purus
Offline
Regular
Last seen: 11 years 19 weeks ago
Joined: 2005-10-17
Posts: 45
Points: 0

Thanks. I appreciate all

Thanks. I appreciate all your help. I was just doing some testing with submitting a new post and it appears that if I take the exact same code and retype it into the submit field (as opposed to copy/paste from Dreamweaver) it works fine. Perhaps the tabs that the copy/paste includes is throwing things off?