Suggestions & Feedback
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
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:
  #1  
Old August 9th, 2005, 03: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: 35
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, 04: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: 37
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, 05:11 PM
Jcaputo's Avatar
Jcaputo Jcaputo is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 265 Jcaputo User rank is Second Lieutenant (5000 - 10000 Reputation Level)Jcaputo User rank is Second Lieutenant (5000 - 10000 Reputation Level)Jcaputo User rank is Second Lieutenant (5000 - 10000 Reputation Level)Jcaputo User rank is Second Lieutenant (5000 - 10000 Reputation Level)Jcaputo User rank is Second Lieutenant (5000 - 10000 Reputation Level)Jcaputo User rank is Second Lieutenant (5000 - 10000 Reputation Level)Jcaputo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Day 23 h 15 m 3 sec
Reputation Power: 60
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, 09: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: 37
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, 02: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: 35
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, 02:40 PM
mehere's Avatar
mehere mehere is offline
Senior Sarcasm Wizardess
ASP Free God 17th Plane (13000 - 13499 posts)
 
Join Date: Feb 2005
Location: Dreamland
Posts: 13,237 mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)mehere User rank is General 15th Grade (Above 100000 Reputation Level)  Folding Points: 10976 Folding Title: Novice Folder
Time spent in forums: 5 Months 1 Day 20 h
Reputation Power: 2012
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:
Pretension: The downside of being better than everyone else is that people tend to assume you're pretentious.

Questions to Ponder:
You can be overwhelmed and underwhelmed, but why can't you be simply whelmed?

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, 04: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: 37
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, 10: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: 35
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, 10: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: 37
way super cool!

Reply With Quote
  #10  
Old August 11th, 2005, 05: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: 37
Do you use [highlight] instead of [code]?

Reply With Quote
  #11  
Old August 11th, 2005, 05: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: 35
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, 05: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: 37
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
  5. }


css Code:
Original - css Code
  1.  
  2. body {
  3. /* some css code */
  4. }


php Code:
Original - php Code
  1.  
  2. $myvariable = $_POST['postvariable'];
  3. // my php code!
  4.  

Reply With Quote
Reply

Viewing: ASP Free ForumsForum InformationSuggestions & Feedback > New BBCode - Syntax Highlighter


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek