HTML code box
-
I’ve searched the forums and have seen people using these…but no help on how to get one. I used this code (with my code for a graphic, not “insert your html code here”)
“<textarea name =”textarea cols =”30” rows “2” wrap=”VIRTUAL”>insert your html code here</textarea>” and when I published it just produced my graphic.What am I doing wrong??
The blog I need help with is: (visible only to logged in users)
-
Did you try this site by chance? It will actually generate the proper HTML code so that it is not interpreted by the browser, but is displayed: http://www.plus2net.com/html_tutorial/tags-page.php .
-
-
What exactly are you trying to accomplish? That text box code is used to display the HTML on the page rather than have it interpreted by the browser.
-
-
http://chantillylacephotoghraphy.wordpress.com
I want to able to display a html code (for a graphic) in a box (with scroll bars) on my site. Not in my sidebar.
ie: http://mychaosmybliss.blogspot.com/2009/06/photo-story-friday-and-climbing-tower.html
-
The textarea HTML tag is not an allowed here: http://support.wordpress.com/code/ .
What you can do though is use the sourcecode shortcode which is explained in the same support document above at this place: http://support.wordpress.com/code/#posting-source-code .
I’m afraid that is the best we can do here at the moment.
-
It would be something like this:
[sourcecode language='HTML'] your code here [/sourcecode] -
-
You’re welcome. Sadly it does not have text wrap, but as you say, it is better than nothing. One other suggestion, always enter the code into the HTML tab. Supposedly it should work in the visual editor as well, but it doesn’t always.
-
Sorry, I think thesacredpath’s original suggestion is what you’re looking for. You convert your code there, then enclose it in the code for a scrollbox – see here:
-
-
Something goes b0rk when I try it. I generated the code using the link on my first reply and then put it into the scrollbox code and this is the result: http://opposablethumbz.wordpress.com/2009/06/28/code-generated-textbox/ .
<div style="height:150px;white-space:pre-wrap;overflow:auto;padding:8px;"><center><font size="-2"><a href="http://whatworksforus.blogspot.com/2007/06/iphone.html" target="_blank" alt="Photostory Friday"><img src="http://i212.photobucket.com/albums/cc50/whatworksforus/pfws.jpg" alt="PhotoStory Friday" border="0"></a><br />Hosted by <a href="http://mychaosmybliss.blogspot.com/" target="_blank">Cecily</a> and <a href="http://whatworksforus.blogspot.com" target="_blank">MamaGeek</a><p/></font></center></div> -
Put it into a scroll box:
<div style="overflow:auto;height:95px;width:200px;white-space:pre-wrap;padding:8px;"> [sourcecode language='HTML']<center><font size="-2"><a href="http://whatworksforus.blogspot.com/2007/06/iphone.html" target="_blank" alt="Photostory Friday"><img src="http://i212.photobucket.com/albums/cc50/whatworksforus/pfws.jpg" alt="PhotoStory Friday" border="0"/></a> Hosted by <a href="http://mychaosmybliss.blogspot.com/" target="_blank">Cecily</a> and <a href="http://whatworksforus.blogspot.com" target="_blank">MamaGeek</a> </font></center> [/sourcecode]</div> -
-
Not a problem. The scrollbox doesn’t seem to work in posts anymore. Didn’t it work at one time in posts and pages?
-
-
-
@tsp: Nothing goes bork – it’s just that the scrollbox will show up only when needed. Drag the browser window to narrow your Garland screen and you’ll see it appear.
- The topic ‘HTML code box’ is closed to new replies.