Can anyone tell me why when I use the code tags in this forum's form for posting html code it doesn't work?
Here's what I'm putting in:
(opening code tag here)
<div id="foo">
(closing code tag here)
Note that I'm escaping the left and right arrows to show this. But again what I'm putting in is:
left-arrow div id="foo" right-arrow ... content
left-arrow forward slash div right-arrow
Are div tags not allowed? Following I'll put in an unordered list using the code tags:
<ul> <li>List Item 1</li> <li>List Item 2</li> <li>List Item 3</li> </ul>
Is there something up with the 'preview trimmed version' versus the 'full preview'? Because I just noticed that when I hit preview it's showing both of them. In the trimmed version, the unordered list is broken along with any other html between the code tags, but in the full version it works. So what's going on with this?
<div id="foo"> Code tags
Code tags are <code>, not with [ and ]
using the wrong tags - fixed it
I guess you were right about my reading skills.
I totally misread the formatting instructions. I was looking at the section at the bottom where it was referring to the left-bracket code right-bracket tags for monospace formatting. I fixed it and of course it works now.
Now I'm curious to know how any of it worked at all? I did the <ul> above using the wrong tags as well.
Thanks!
Seems that the forum accepts
Seems that the forum accepts both but will only parse all tags correctly using the <code> kind.
Bumping this thread because
Bumping this thread because posting of code is still a recurrent problem on the forum. Is there any way we can add to the reply page a note that says something like: "when posting code, please use the third button from the right"? Because no-one knows it's there and there's too many threads that need to be edited to make them display right.
code
Hi Tyssen,
On the first line under the comment field:
You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
So they can either hit the code button or read the guidelines below. I don't think adding it again will make anyone read.
I will add to my list of things to-do a note on accepting bbcode style code tags.
I'm not sure how many people
I'm not sure how many people read those. The problem is that there's a button to do the job but most people don't know it's there. Maybe you could change the image to say [enter code] ?
Sure that's a great idea,
Sure that's a great idea, would <code> be sufficient.
That's the trouble with
That's the trouble with using icons. Somebody may have known that was a code icon. It weren't me, though.
cheers,
gary
icon changed
How's that?
Not out!
Not out!