This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Ranch Office and the fly likes SyntaxHighlighter for Java Code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "SyntaxHighlighter for Java Code" Watch "SyntaxHighlighter for Java Code" New topic
Author

SyntaxHighlighter for Java Code

Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
It would be really nice if Syntax Highlighter can be incorporated into the Javaranch forums code displays. That would greatly augment the reading experience.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

Santhosh,
Agreed. That kind of thing seems like a great wish list item for us to include at some point in the future.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Wow, thats a good-to-have feature.

But even without any syntax highlighter, it looks fine for me, as the load on server could increase gradually if we keep adding features of this sort.

Moreover, we can very well survive without that feature in place.

Just expressed my views here Santhosh


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
I understand the server load but this synax highlighter is completely client side, implemented in css and js. That developer has done really a great job developing that library.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Yes, definitely it should be appreciated
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Yes...this should be a cool feature!


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
Yes, syntax highlighting is nice. We added it to the FAQ wiki, which makes for nice looking source code in the CodeBarn (which, by the way, is open for contributions, hint hint). That's done on the server with the JHighlight library.
[ July 11, 2008: Message edited by: Ulf Dittmer ]

Ping & DNS - updated with new look and Ping home screen widget
Santhosh Kumar
Ranch Hand

Joined: Nov 07, 2000
Posts: 242
That is good idea, may be this can be tired out in CodeBarn to start with and if all goes well, can be rolled out to other places.

Integrating is pretty easy. Check out the sample page with two code blocks I have created here.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SyntaxHighlighter for Java Code
 
Similar Threads
Adding syntax highlighting to existing application.
What is a good way to keep notes and journals?
Displaying code on a web page
How to display source code in browser?
add java programming syntax in html