You can insert HTML, PHP, Javascript codes, etc into special boxes using bbCode, the text inserted in the code box will be converted to a fixed-width (monospace) font, & ensures that nothing from the code is lost when you submit your message.
The tag for code is [code]. Its use is not different from the use of other tags we saw, it should wrap the code you want to be in the box.
Example:
Let's wrap an example of Javascript code:
[code]
<script type="text/javascript">
<!-- alert("Hello world!"); //-->
</script>
[/code]
Here's the result you would get:
Code:
<script type="text/javascript">
<!--
alert("Hello world!");
//-->
</script>
4 comments:
There's a lot of great tutorials here, but here's one I couldn't find.
How do you do a Code Box with a "Select All" option? Instead of having "Code:" at the top of the box it has "Code: Select All" and the user can click and automatically highlight everything in the code box. I've looked and looked to see how this is done and I can't seem to find it anywhere.
If such a tag exists I'm not aware of it, as I said in some posts, bbCode is derived from HTML but it's very limited & allows you to do basic stuff .. but to get text selected with one click even HTML is not enough, it's done using Javascript :)
Sorry for the late reply I was busy with other stuff, & thanks for the compliment :)
well i know a bit of html but feels trouble with using bbcode, but i think i might learn this as weel and have already learnt some of the commands, thanks for the post.
افلام سكس تويتر
افلام سكس اغتصاب
صور سكس
افلام سكس خليجى
افلام سكس مساج
احدث افلام سكس
صور سكس عربى
افلام نيك
افلام نيك مثيرة
افلام سكس اجنبى
مقاطع سكس xnxx
سكس ساخن
افلام سكس ساخن
نيك ساخن
Post a Comment