Nick Very Senior Member
Posts: 3,012 Status: Offline Gender: Male Location: vForums Age: 34 Joined:
pmwww | Re: Code Tag (10th Dec 07 at 3:26pm UTC) | | Oh ok... could also be that this place may not be as busy as some other sites I visit.
I live in Wisconsin, US. and the server loads up fast for me, It depends on the service you have, DSL = Fast, LAN = Fast, Cable = Fast, Dial up = Slow.
~Darkmage | |
|
Graham Support Administrator
Posts: 1,642 Status: Offline Gender: Male Location: Sussex, UK Age: 39 Joined:
Additional Groups: Support Team
pmwww | Re: Code Tag (10th Dec 07 at 4:03pm UTC) | | Is there any other UK people on here
*Raises hand aloft* | |
|
BizzD Full Member
Posts: 306 Status: Offline Gender: Male Location: Washington Joined:
pm | Re: Code Tag (12th Dec 07 at 1:02am UTC) | | Oh ok... could also be that this place may not be as busy as some other sites I visit. Maybe...I'm sure Ross will eventually be getting numbered servers, like Proboards has, once the service gets popular enough.
VF will probably get more popular faster than PB did. Though it would be nice if not all of the members are from PB. Then it wouldn't be much of a difference. | |
|
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
pmwww | Re: Code Tag (12th Dec 07 at 1:47am UTC) | | Oh ok... could also be that this place may not be as busy as some other sites I visit. Maybe...I'm sure Ross will eventually be getting numbered servers, like Proboards has, once the service gets popular enough. VF will probably get more popular faster than PB did. Though it would be nice if not all of the members are from PB. Then it wouldn't be much of a difference.
Once people get established forums, then members of those forums will come here. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Ross Administrator
Posts: 3,709 Status: Offline Gender: Male Age: 8 1⁄1 Joined:
Additional Groups: Support Team
pmwwwgtalkvForum | Re: Code Tag (13th Dec 07 at 12:19am UTC) | | How does this look?
Code: - Any
- Plain
- Text
- Or
- [b]UBBC[/b]
- Tags
Code: CSS - <style type="text/css">
- <!--
- .clasname { width: 100px; background-color: #ff6600;
- }
- #id { display: none;
- }
- //-->
- </style>
It still needs some work on the height, of each code box and some of the syntax highlighting isn't working properly, but is that looking better? | |
|
|
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
pmwww | Re: Code Tag (13th Dec 07 at 3:37am UTC) | | How does this look? Code: - Any
- Plain
- Text
- Or
- [b]UBBC[/b]
- Tags
Code: CSS - <style type="text/css">
- <!--
- .clasname { width: 100px; background-color: #ff6600;
- }
- #id { display: none;
- }
- //-->
- </style>
It still needs some work on the height, of each code box and some of the syntax highlighting isn't working properly, but is that looking better?
Ross, you are officially teh sex.
EDIT: Uh-oh, quotes don't work when there are code tags enclosed in them. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Ross Administrator
Posts: 3,709 Status: Offline Gender: Male Age: 8 1⁄1 Joined:
Additional Groups: Support Team
pmwwwgtalkvForum | Re: Code Tag (13th Dec 07 at 9:44am UTC) | | Fixed. I've also added some automatic height calculation. | |
|
|
Graham Support Administrator
Posts: 1,642 Status: Offline Gender: Male Location: Sussex, UK Age: 39 Joined:
Additional Groups: Support Team
pmwww | Re: Code Tag (13th Dec 07 at 10:29am UTC) | | Still seems to be misaligned
| |
|
Ross Administrator
Posts: 3,709 Status: Offline Gender: Male Age: 8 1⁄1 Joined:
Additional Groups: Support Team
pmwwwgtalkvForum | Re: Code Tag (13th Dec 07 at 10:54am UTC) | | What browser is that in? I've only checked it in IE7 and Firefox2 at the moment. | |
|
|
Graham Support Administrator
Posts: 1,642 Status: Offline Gender: Male Location: Sussex, UK Age: 39 Joined:
Additional Groups: Support Team
pmwww | Re: Code Tag (13th Dec 07 at 10:58am UTC) | | Tis in FF2, which makes it all the more confusing | |
|
Ross Administrator
Posts: 3,709 Status: Offline Gender: Male Age: 8 1⁄1 Joined:
Additional Groups: Support Team
pmwwwgtalkvForum | Re: Code Tag (13th Dec 07 at 11:40am UTC) | | When in doubt, revert to tables | |
|
|
Graham Support Administrator
Posts: 1,642 Status: Offline Gender: Male Location: Sussex, UK Age: 39 Joined:
Additional Groups: Support Team
pmwww | Re: Code Tag (13th Dec 07 at 11:41am UTC) | | There we go, much better | |
|
Marc vChat Developer
I <3 Rossy
Posts: 3,388 Status: Offline Gender: Male Location: Ontario, Canada Age: 32 Joined:
Additional Groups: Coding Team
pmwww | Re: Code Tag (13th Dec 07 at 3:47pm UTC) | | When in doubt, revert to tables
Thanks Ross, looks even sexier. | |
rroll.to— Shorten a link, rickroll your friends. |
|
Ross Administrator
Posts: 3,709 Status: Offline Gender: Male Age: 8 1⁄1 Joined:
Additional Groups: Support Team
pmwwwgtalkvForum | Re: Code Tag (13th Dec 07 at 11:48pm UTC) | | There's a couple of options in regards to the syntax highlighting. As shown in the two samples above there's plain (no highlight) and CSS. But there's also php, js and html
Code: PHP <?php - include "../includes.php";
- echo "Hello World";
- do_my_function();
- ?>
Code: HTML - <table class="border" cellpadding="3" cellspacing="1">
- <tr>
- <td class="window1">
- <span style="font-size: 15px; font-weight: bold;">Contents of my table</span>
- </td>
- </tr>
- </table>
Code: JavaScript - <script type="text/javascript">
- <!--
- var td = document.getElementsByTagName('td');
- for(i=0; i<td.length; i++) {
- if(td.item(i).width == "20%") {
- td.item(i).innerHTML += "my string";
- }
- }
- //-->
- </script>
The highlighting engines for the CSS, HTML and JS were all custom built so I wouldn't be surprised if it conflicts with some codes and doesn't highlight them 100% accurately. But overall I'm pretty happy with the result. | |
|
|
Graham Support Administrator
Posts: 1,642 Status: Offline Gender: Male Location: Sussex, UK Age: 39 Joined:
Additional Groups: Support Team
pmwww | Re: Code Tag (13th Dec 07 at 11:51pm UTC) | | Looking good mate, good darts | |
|