|
Help programming Java IDE in Java
|
|
03-09-2010, 05:45 AM
Post: #1
|
|||
|
|||
|
Help programming Java IDE in Java
I need to make Syntax highlighting in my text editor, please help me program this.
All help and links to tutorials greatly appreciated. |
|||
|
03-09-2010, 07:57 AM
Post: #2
|
|||
|
|||
|
RE: Help programming Java IDE in Java
http://netbeans.org/
Thats a good IDE. and if you just want a text editor with syntax highlighting get notepad++ "Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
03-09-2010, 08:13 AM
Post: #3
|
|||
|
|||
RE: Help programming Java IDE in Java
(03-09-2010 07:57 AM)Back_track Wrote: http://netbeans.org/ I meant to program my own, its something I always wanted to be able to do so thought this forum would be one of the best places to begin. |
|||
|
03-09-2010, 09:19 AM
Post: #4
|
|||
|
|||
|
RE: Help programming Java IDE in Java
Well, i have one in C#, but since that wont help i'll find a tutorial or some source.
http://sourceforge.net/projects/jedit-sy...p/download You can't just rip from this , but this should really give you a good idea as well as code as to what you actually have to do for syntax highlighting. Hope I helped! "Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
03-09-2010, 05:24 PM
(This post was last modified: 03-09-2010 05:34 PM by Alphablend.)
Post: #5
|
|||
|
|||
|
RE: Help programming Java IDE in Java
Check this out.
http://www.jcreator.com/ Free version of JavaCreator is the LE version. So search for that on the net. I was lazy to crack the professional version. "JCreator is the development tool for every programmer that likes to do what he does best: programming. It is faster, more efficient and more reliable than other IDE’s. Therefore it is the perfect tool for programmers of every level, from learning programmer to Java-specialist." I use Java Creator and I highly recommend this one if you plan to practice non-object orientated programming. And believe me, you don't want to start with objects before you learn some basics. However, NETBeans is great for objects. Personally, I'm not on NETBeans level yet. I'm about to start learning objects in Java. [EDIT] JCreator does highlight the code. |
|||
|
03-09-2010, 06:12 PM
Post: #6
|
|||
|
|||
RE: Help programming Java IDE in Java
(03-09-2010 05:24 PM)Alphablend Wrote: Check this out. trying to program my own, I already use netbeans and notepad++ aswell as dr java at times. |
|||
|
03-09-2010, 07:03 PM
Post: #7
|
|||
|
|||
|
RE: Help programming Java IDE in Java
you can look at this source of JS...
http://code.google.com/p/syntaxhighlighter/ Read rules ![]()
|
|||
|
03-09-2010, 08:58 PM
Post: #8
|
|||
|
|||
|
RE: Help programming Java IDE in Java
Okay you need to get a proper component for that.
In your text editor that you are making, do you use simple textbox with lines or some kind of rich text editor which doesn't just have one color of the same letters. Basically you need to find a component which shows syntax highlighted code, but the source of that is behind (what user can't see). When you find that component we can talk about everything else. Than coding starts, you need to collect all registered words, like "if" or "for" or so. There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
03-10-2010, 12:33 AM
Post: #9
|
|||
|
|||
RE: Help programming Java IDE in Java
(03-09-2010 08:58 PM)drdebcol Wrote: Okay you need to get a proper component for that. I am using a jEditorPane. I dont usually do muc hwith GUI's so quite confused. but I understand I need to read in the contents as a String, but how do I change the properties of selected text but not the entire String? |
|||
|
03-10-2010, 01:16 AM
(This post was last modified: 03-10-2010 01:18 AM by drdebcol.)
Post: #10
|
|||
|
|||
|
RE: Help programming Java IDE in Java
Now try to find a way to save contents of your jEditorPane. And when you type something in it, just save that and open it in Notepad. If you get only text that you wrote, and nothing that program added, than you need to find another component, because that is not proper for syntax highlighting !
Also i think that this article can help you : http://java.sun.com/products/jfc/tsc/art...ditor_kit/ There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
« Next Oldest | Next Newest »
|








