Colouring code displayed in html
#1
Scooby Regular
Thread Starter
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes
on
0 Posts
Colouring code displayed in html
Hi folks,
The app I'm writing (servlet based, running in tomcat) has the ability to load source code from the server and display it in the web browser (for example, it takes a cobol / java / jcl src file, converts it to html, then pumps it out to the browser).
To get this looking nice, I've written some basic colorization routines (configured via xml documents containing basic language rules etc) which do stuff like putting comments into light grey itallics, highlightling keywords in bold etc, but although it's quick, it's a bit clunky and I haven't a lot of time to spend on improving it.
I was wondering if anyone out there knew of any open source java colorization code / projects as if there is already something out there which will do the job, I might as well use it
Thanks,
Iain
The app I'm writing (servlet based, running in tomcat) has the ability to load source code from the server and display it in the web browser (for example, it takes a cobol / java / jcl src file, converts it to html, then pumps it out to the browser).
To get this looking nice, I've written some basic colorization routines (configured via xml documents containing basic language rules etc) which do stuff like putting comments into light grey itallics, highlightling keywords in bold etc, but although it's quick, it's a bit clunky and I haven't a lot of time to spend on improving it.
I was wondering if anyone out there knew of any open source java colorization code / projects as if there is already something out there which will do the job, I might as well use it
Thanks,
Iain
Thread
Thread Starter
Forum
Replies
Last Post
shorty87
Full Cars Breaking For Spares
19
22 December 2015 11:59 AM
acemodder
ScoobyNet General
50
01 October 2015 07:01 PM