How do you post HTML in a PM here on DU without it actually working?
What I mean is I need to give an example on how to do something in html but when I post the code it does what it's suppose to do (I need to post the code as an example).
Any and all help would be greatly appreciated.
mockmonkey
(2,815 posts)there is this link from the Welcome and Help section of DU
http://www.democraticunderground.com/?com=view_post&forum=1256&pid=1674#html_lookup_table
gvstn
(2,805 posts)On most forums you can add an extra space after the opening bracket of the command and it breaks the command and shows the command as text, but DU seems to understand the command is broken but does not print the text. You could substitute a different bracket in your example and then tell the person to replace the brackets with the square brackets (in this example the proper brackets are on the same keyboard key as the one I used so easy to find and substitute).
{div class="excerpt"}Blocked Quoted Text Here{/div}
ChromeFoundry
(3,270 posts)Not sure if DU supports it...
[pre]
<table>
<tr>
<td>this is a test...</td>
</tr>
</table>
[/pre]
Just wrap your HTML in a bracketed PRE tag.
PrestonLocke
(217 posts)Make7
(8,543 posts)Replace all left square brackets ( [ ) with its html entity ( [ ).
[div class="excerpt" style="display:inline-block; margin-left:1em; border:1px solid #bfbfbf; border-radius:0.4615em; box-shadow:-1px -1px 3px #999999 inset;"][font color="blue"]text[/font]
[font color="blue"]text[/font]
Is that what you are looking for? If you have a lot of code, using a simple text editor is helpful because you can use its search and replace function. Hope that helps.
EDIT TO ADD: An easy way to test if what you're doing works is to PM yourself and view the final results. That way you don't end up sending somebody something that is showing up incorrectly.
Also replies to PM's with code examples get interesting because the entities become left square brackets and will make the code execute when it is sent back to you.
[button color="green" link="" size="medium" target="_blank" font="georgia" textcolor="#090000" align="left"]Read More [/button]
Original code (although on du it will not put it in the green box, or make it clickable, but good for the example I nee to do).
[button color="green" link="http://www.democraticunderground.com/" size="medium" target="_blank" font="georgia" textcolor="#090000" align="left"]Read More[/button]
ETA: That didn't work.
]button color="green" link="" size="medium" target="_blank" font="georgia" textcolor="#090000" align="left"]Read More]/button]
I changed one of the brackets to get it to post. Thanks for pointing me in the right direction.
Make7
(8,543 posts)Perhaps I should have mentioned when you do the same thing in posts on the board if you preview your post, it turns the html entities into the actual characters so when you hit the Post my reply! button from there it executes the code instead of just displaying it. To prevent that, just hit your browser's back (previous page) button to post from the pre-previewed text with the html entities still intact.
Since the DU3 software doesn't support the [button] tag, should I assume this is for another board? If that is the case, I can't say whether or not using html entities in a PM there will work or not - you can always try it and see.
FYI, the html button tag does not support any of the attributes in your example.
I guess whether that button code works as intended depends on if that site is using some non-standard adoption of the tag. If it is simply converting the stuff in brackets to html, it definitely will not work. If it was just some random placeholder example, forget what I just said.