SunQuest
 
           Suggestions & Feedback
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
IBM developerWorks
Go Back   ASP Free ForumsForum InformationSuggestions & Feedback

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old August 9th, 2005, 02:39 PM
thaminda's Avatar
thaminda thaminda is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 156 thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 1 h 58 m 36 sec
Reputation Power: 33
New BBCode - Syntax Highlighter

We have added new bbcode “highlighter” which use for generic syntax highlighting. This one support wide range of popular languages.

Usage :
[ highlight=language ]
Codes
[ /highlight ]

Here is a new highlighter bbcode in action, displaying part of a PHP code.
php Code:
Original - php Code
  1. <?php
  2. function _split_text($text)
  3. {
  4. $MAX_LENGTH = 160;
  5.  
  6.   $split=explode(" ",$text);
  7.   $numwords = count($split);
  8.   $i=0; //while counter
  9.   $a = 1; //counts the text chunks
  10.  
  11.   $amount = ceil(strlen($text)/($MAX_LENGTH-5)); //get total word chunks
  12.   while($i < $numwords){
  13.    $len = (strlen($newtext[$a])+strlen($split[$i])); //get length of the active chunk
  14.      if($len>($MAX_LENGTH-5)){ //do we have to start a new one?
  15.        $a++;
  16.        $newtext[$a] = "[$a/$amount] "; //Adds [1/2]
  17.      }else{
  18.        if($i == 0) $newtext[$a] = "[$a/$amount] ";
  19.        $newtext[$a]=$newtext[$a]." ".$split[$i];
  20.        $i++;
  21.      }
  22.   }
  23.   return $newtext;
  24. }
  25. }
  26. ?>



Here is the list of languages supported by this new bbcode

actionscript
ada
apache
asm
asp
bash
caddcl
cadlisp
c_mac
c
cpp
csharp
css-gen.cfg
css
delphi
diff
div
d
eiffel
gml
html4strict
java
javascript
lisp
lua
matlab
mpasm
nsis
objc
oobas
oracle8
pascal
perl
php-brief
php
python
qbasic
smarty
sql
vbnet
vb
vhdl
visualfoxpro
xml
Comments on this post
Dragon Rider agrees: the reason is obvious

Reply With Quote
  #2  
Old August 9th, 2005, 03:10 PM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 36
Cool! This is an excellent addition!

I would like to request an additional BB Code type. It would be useful to be able to use something like [strike] or [del] when editing posts.

Reply With Quote
  #3  
Old August 9th, 2005, 04:11 PM
Jcaputo's Avatar
Jcaputo Jcaputo is offline
Administrator
Developer Shed Admin.
 
Join Date: Jul 2003
Posts: 261 Jcaputo User rank is Sergeant (500 - 2000 Reputation Level)Jcaputo User rank is Sergeant (500 - 2000 Reputation Level)Jcaputo User rank is Sergeant (500 - 2000 Reputation Level)Jcaputo User rank is Sergeant (500 - 2000 Reputation Level)Jcaputo User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 22 h 40 m 37 sec
Reputation Power: 10
Quote:
Originally Posted by banker
Cool! This is an excellent addition!

I would like to request an additional BB Code type. It would be useful to be able to use something like [strike] or [del] when editing posts.


we will look into doing this.

Reply With Quote
  #4  
Old August 10th, 2005, 08:08 AM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 36
Quote:
Originally Posted by Jcaputo
we will look into doing this.


cool!
__________________
ShepherdWeb :: Charging Rhino Wizard

I know of no more encouraging fact than the unquestionable ability of man to elevate his life by conscious endeavor.
{Henry David Thoreau}

§ shepherdweb.com
§ fariswheel productions
§ reagan administration

Reply With Quote
  #5  
Old August 10th, 2005, 01:38 PM
thaminda's Avatar
thaminda thaminda is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 156 thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 1 h 58 m 36 sec
Reputation Power: 33
Quote:
Originally Posted by banker
Cool! This is an excellent addition!

I would like to request an additional BB Code type. It would be useful to be able to use something like [strike] or [del] when editing posts.


Can you please give us more information about these new Tags, what are the functions of those new tags should be?

Reply With Quote
  #6  
Old August 10th, 2005, 01:40 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
Click here for more information.
 
Join Date: Feb 2005
Location: Dreamland
Posts: 12,647 mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)mehere User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 4 Months 3 Weeks 5 Days 19 h 16 m 7 sec
Reputation Power: 1542
I would assume to put a line through existing text ... instead of deleting it when you edit a post.
__________________
Come JOIN the party!!!

Quote of the Month:
Stupidity: Quitters never win, winners never quit, but those who never win AND never quit are idiots.

Questions to Ponder:
If man evolved from monkeys and apes, why do we still have monkeys and apes?

iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
copyright© 2008 sbenj69

Reply With Quote
  #7  
Old August 10th, 2005, 03:53 PM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 36
Quote:
Originally Posted by mehere
I would assume to put a line through existing text ... instead of deleting it when you edit a post.


exactly.

Reply With Quote
  #8  
Old August 11th, 2005, 09:31 AM
thaminda's Avatar
thaminda thaminda is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 156 thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 1 h 58 m 36 sec
Reputation Power: 33
Thumbs up New [ strike ] tag

Quote:
Originally Posted by banker
Cool! This is an excellent addition!

I would like to request an additional BB Code type. It would be useful to be able to use something like [ strike ] or [ del ] when editing posts.


We have create a new [ strike ] bbocde tag

Usage :
[ strike ] Text contents [ /strike ]


Cool! This is an excellent addition!

I would like to request an additional BB Code type. It would be useful to be able to use something like [ strike ] or [ del ] when editing posts.
Comments on this post
banker agrees: Thanks! You Rock!
micky agrees: Striking effect!!

Reply With Quote
  #9  
Old August 11th, 2005, 09:34 AM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 36
way super cool!

Reply With Quote
  #10  
Old August 11th, 2005, 04:08 PM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 36
Do you use [highlight] instead of [code]?

Reply With Quote
  #11  
Old August 11th, 2005, 04:22 PM
thaminda's Avatar
thaminda thaminda is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 156 thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level)thaminda User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 1 h 58 m 36 sec
Reputation Power: 33
Quote:
Originally Posted by banker
Do you use [highlight] instead of [code]?


[ CODE ] is a default bbcode came with vBulletin forums. Recently we have added more advanced syntax highlighting code tag [ highlight ] which support wide range of popular languages.

Personally I prefer to use [ highlight ] code tag, it is more eye catching and also it provide direct links documentation for many words.

Reply With Quote
  #12  
Old August 11th, 2005, 04:26 PM
banker's Avatar
banker banker is offline
Charging Rhino Wizard
ASP Free Regular (2000 - 2499 posts)
 
Join Date: Dec 2004
Location: 127.0.0.1
Posts: 2,053 banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level)banker User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 23 h 28 m 28 sec
Reputation Power: 36
Quote:
Originally Posted by thaminda
[ CODE ] is a default bbcode came with vBulletin forums. Recently we have added more advanced syntax highlighting code tag [ highlight ] which support wide range of popular languages.

Personally I prefer to use [ highlight ] code tag, it is more high catching and also it provide direct links documentation for many words.


Cool, I got it fugured out I think!

javascript Code:
Original - javascript Code
  1.  
  2. function myfunction()
  3. {
  4. // my javascript function