This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Java Syntax Highlighter Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Java Syntax Highlighter" Watch "Java Syntax Highlighter" New topic
Author

Java Syntax Highlighter

Mohan Panigrahi
Ranch Hand

Joined: Sep 28, 2001
Posts: 142
Hi All,
I need some IDE for java, which would format the code and hightlight the syntax keywords.
AND when I cut and paste the code from the IDE into word document, it should retain the syntax colors.
Most of the IDEs, I work with, don't support this thing.
Thanks
Mohan
NANDHIKANTI NARESHKUMAR
Greenhorn

Joined: May 10, 2003
Posts: 1
Originally posted by N Naresh Kumar:
[QB]Hi Mohan,
Better to go for an Editor of java the best known Editor is Edit Plus you download it free of cost just give the keyword to the google it will find it out to you.
If you feel comfortable with this solution please to mail me at nnareshkumar@rediffmail.com
[QB]
Mohan Panigrahi
Ranch Hand

Joined: Sep 28, 2001
Posts: 142
Thanks for reply.
But it does not solve my problem. Paste java code from this to word doc and all the code colors vanish!!
I hope you understand my requirement.
Thanks
Mohan
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171
Hi Mohan
I don't believe that there are any editors out there that will do what you are asking. The colours are only put on by the presentation layer of the IDE as it renders the java file, the contents of the file are just plain text. It's basically like wanting to cut an paste a block of HTML into a Word document and expecting to see a web page in the document.
regards
Andy Bowes


Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
What you could do is let your code be processed by a java2html converter and import the resulting html into word.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Mohan Panigrahi
Ranch Hand

Joined: Sep 28, 2001
Posts: 142
Thanks Ilja. It works.
Mohan
 
 
subject: Java Syntax Highlighter
 
Threads others viewed
Steps to learning Java
poll - text editor vs development env.
Which IDE do i use from a complete newbie
Linux IDE for Java
fn replace single quote with space
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture