Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Any java ui gurus out there?

Thread Tools
 
Search this Thread
 
Old 07 February 2005, 11:14 AM
  #1  
Iain Young
Scooby Regular
Thread Starter
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Default Any java ui gurus out there?

If so, any ideas on this...

Got a servlet which is trying to load in some source code from a text file, (cobol / java / jcl / asm etc), colorize it according to the rules of that language, (i.e. so it looks like it would in an editor for that language), then output it as an html document. Also inserts hyperlinks on certain keywords and highlights certain areas of text with different coloured backgrounds etc.

At the moment I've got this working by reading the text character by character, and inserting style tags as and when needed. It works, but is a bit slow and clunky, and I can't help feeling that there should be a more elegant way of doing it.

I did wonder about using the swing text / document stuff, and writing a routine to convert the document to html after it had been styled, but not sure if this will work (how do I insert hyperlinks etc around items for example).

Any ideas gratefully received, as google isn't returning much info on the subject....

Thanks,
Iain
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
suba
Computer & Technology Related
3
23 August 2002 10:45 PM
father_jack
Computer & Technology Related
3
14 August 2002 11:13 AM
ozzy
Computer & Technology Related
12
28 July 2002 07:09 PM
super_si
Computer & Technology Related
1
18 April 2002 07:52 PM



Quick Reply: Any java ui gurus out there?



All times are GMT +1. The time now is 03:29 AM.