Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

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 Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old August 9th, 2005, 04:49 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
New bbcode highlighter

We have added a new bbcode called “highlighter” which is used for generic syntax highlighting. It supports a wide range of popular languages.

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

Sample Java code:
java Code:
Original - java Code
  1.  
  2.     public static String backslashQuotes(String s) {
  3.         if (s != null) {
  4.             int len = s.length();
  5.             StringBuffer buf = new StringBuffer(len + 10);
  6.             char c = '\0';
  7.             for (int i = 0; i < len; i++) {
  8.                 c = s.charAt(i);
  9.                 if (c == '"') {
  10.                     buf.append('\\');
  11.                 }
  12.                 buf.append(c);
  13.             }
  14.  
  15.             return buf.toString();
  16.         }
  17.         else {
  18.             return null;
  19.         }
  20.     }




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
gimp agrees!
__________________
~Nemi

Before posting did you try:
[ Javadocs | Google ]

Last edited by Nemi : August 10th, 2005 at 09:41 AM.

Reply With Quote
  #2  
Old August 9th, 2005, 10:31 PM
Yawmark's Avatar
Yawmark Yawmark is online now
Feelin' Groovy
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Aug 2001
Location: WDSMIA
Posts: 7,589 Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level)Yawmark User rank is General 5th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 1 Day 5 h 58 m 18 sec
Reputation Power: 1321
Send a message via ICQ to Yawmark Send a message via MSN to Yawmark
Excellent! Now we don't have to have "PHP Code:" preceding our Java examples just to get the pretty colors...

Thanks!
__________________
Yawmark
class Sig{public static void main(String...args){\u0066or(int
\u0020$:"vÌÈÊ\"¤¾Àʲ¬Æ\"v¤Î¤\"²¤¨¸¬Æ".to\u0043h\u0061rArray()
)System./*goto/*$/%\u0126//^\u002A\u002Fout.print((char)(($>>
+(~'"'&'#'))+('<'>>('\\'/'.')/\u002Array.const(~1)\*\u002F)));}}

Reply With Quote
  #3  
Old November 6th, 2005, 09:12 PM
tvc3mye's Avatar
tvc3mye tvc3mye is offline
Daniel Schildsky
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2004
Location: KL, Malaysia.
Posts: 530 tvc3mye User rank is First Lieutenant (10000 - 20000 Reputation Level)tvc3mye User rank is First Lieutenant (10000 - 20000 Reputation Level)tvc3mye User rank is First Lieutenant (10000 - 20000 Reputation Level)tvc3mye User rank is First Lieutenant (10000 - 20000 Reputation Level)tvc3mye User rank is First Lieutenant (10000 - 20000 Reputation Level)tvc3mye User rank is First Lieutenant (10000 - 20000 Reputation Level)tvc3mye User rank is First Lieutenant (10000 - 20000 Reputation Level)tvc3mye User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 8 h 15 m 14 sec
Reputation Power: 129
Send a message via ICQ to tvc3mye Send a message via MSN to tvc3mye Send a message via Yahoo to tvc3mye
Great!

Great! This little piece of tool is really convenient!
But for SQL, does it support all variations of sql?
__________________
When the programming world turns decent, the real world will turn upside down.

Reply With Quote
  #4  
Old November 7th, 2005, 10:22 AM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
Quote:
But for SQL, does it support all variations of sql?
I have no idea. Try it and see!

Reply With Quote
  #5  
Old November 23rd, 2005, 01:12 AM
adorablepuppy's Avatar
adorablepuppy adorablepuppy is offline
Come to the door. . .
Dev Shed Novice (500 - 999 posts) Click here for more information
 
Join Date: Mar 2004
Location: Ohio
Posts: 812 adorablepuppy User rank is First Lieutenant (10000 - 20000 Reputation Level)adorablepuppy User rank is First Lieutenant (10000 - 20000 Reputation Level)adorablepuppy User rank is First Lieutenant (10000 - 20000 Reputation Level)adorablepuppy User rank is First Lieutenant (10000 - 20000 Reputation Level)adorablepuppy User rank is First Lieutenant (10000 - 20000 Reputation Level)adorablepuppy User rank is First Lieutenant (10000 - 20000 Reputation Level)adorablepuppy User rank is First Lieutenant (10000 - 20000 Reputation Level)adorablepuppy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 12 h 40 m 30 sec
Reputation Power: 142
Send a message via MSN to adorablepuppy Send a message via Google Talk to adorablepuppy
Very nice.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > New bbcode 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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway