vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: System Improvements :: Suggestions :: Implemented Suggestions :: Code Tag - View Topic (Page 2 of 3)Page: 1 2 3
Topic Rating: *****
Printable View
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,012
Status: Offline
Gender: Male
Location: vForums
Age: 34
Joined:  
Reputation: 62%  


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
*****

[Avatar]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 39
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


pmwww
Re: Code Tag (10th Dec 07 at 4:03pm UTC)
 
Is there any other UK people on here{Confused}


*Raises hand aloft*
BizzD
Full Member
***

Posts: 306
Status: Offline
Gender: Male
Location: Washington
Joined:  
Reputation: 0%  


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. {Smile}


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. {Unsure}
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


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. {Smile}


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. {Unsure}


Once people get established forums, then members of those forums will come here. {Wink}

rroll.to— Shorten a link, rickroll your friends.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Code Tag (13th Dec 07 at 12:19am UTC)
How does this look?

Code:
 
  1. Any
  2. Plain
  3. Text
  4. Or
  5. [b]UBBC[/b]
  6. Tags
 


Code: CSS
 
  1. <style type="text/css">
  2. <!--
  3. .clasname { width: 100px; background-color: #ff6600;
  4. }
  5. #id { display: none;
  6. }
  7. //-->
  8. </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?

Image
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Code Tag (13th Dec 07 at 3:37am UTC)
 
How does this look?

Code:
 
  1. Any
  2. Plain
  3. Text
  4. Or
  5. [b]UBBC[/b]
  6. Tags
 


Code: CSS
 
  1. <style type="text/css">
  2. <!--
  3. .clasname { width: 100px; background-color: #ff6600;
  4. }
  5. #id { display: none;
  6. }
  7. //-->
  8. </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. {Grin}

EDIT: Uh-oh, quotes don't work when there are code tags enclosed in them. {Sad}

rroll.to— Shorten a link, rickroll your friends.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Code Tag (13th Dec 07 at 9:44am UTC)
Fixed. I've also added some automatic height calculation.

Image
Graham
Support Administrator
*****

[Avatar]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 39
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


pmwww
Re: Code Tag (13th Dec 07 at 10:29am UTC)
Still seems to be misaligned {Unsure}

Image
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
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.

Image
Graham
Support Administrator
*****

[Avatar]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 39
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


pmwww
Re: Code Tag (13th Dec 07 at 10:58am UTC)
Tis in FF2, which makes it all the more confusing {Unsure}
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Code Tag (13th Dec 07 at 11:40am UTC)
When in doubt, revert to tables {Tongue Out}

Image
Graham
Support Administrator
*****

[Avatar]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 39
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


pmwww
Re: Code Tag (13th Dec 07 at 11:41am UTC)
There we go, much better {Cheesy}
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 32
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Code Tag (13th Dec 07 at 3:47pm UTC)
 
When in doubt, revert to tables {Tongue Out}


Thanks Ross, looks even sexier. {Wink} {Smile}

rroll.to— Shorten a link, rickroll your friends.
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 8 11
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
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
 
  1. <?php
  2. include "../includes.php";
  3. echo "Hello World";
  4. do_my_function();
  5. ?>
 


Code: HTML
 
  1. <table class="border" cellpadding="3" cellspacing="1">
  2. <tr>
  3. <td class="window1">
  4. <span style="font-size: 15px; font-weight: bold;">Contents of my table</span>
  5. </td>
  6. </tr>
  7. </table>
 


Code: JavaScript
 
  1. <script type="text/javascript">
  2. <!--
  3. var td = document.getElementsByTagName('td');
  4. for(i=0; i<td.length; i++) {
  5. if(td.item(i).width == "20%") {
  6. td.item(i).innerHTML += "my string";
  7. }
  8. }
  9. //-->
  10. </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. {Smile}

Image
Graham
Support Administrator
*****

[Avatar]

Posts: 1,642
Status: Offline
Gender: Male
Location: Sussex, UK
Age: 39
Joined:  

Additional Groups:
Support Team
***


Reputation: 57%  


pmwww
Re: Code Tag (13th Dec 07 at 11:51pm UTC)
Looking good mate, good darts {Smile}
 Printable View
Page: 1 2 3

All times are GMT+0 :: The current time is 7:41pm
Page generated in 1.5279 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums