![]() |
Code Highlighting in Text Editor
Hi all this is my first post here.
Sorry if it's been asked before, i did search. Anyway, i am developing a text editor and want to add highlighting to the syntax, to start with HTML then PHP and ASP. But not sure where to start. I'm coding in Java using the Swing library. Thanks:) |
Is there an actual question in there somewhere? :confused:
|
Sorry,
I am developing a text editor and i want to add highlighting to the source code. But i'm not sure how it's done. So my question is, can anyone point me in the right direction as to how i go about it? |
I would recommend looking at this url.
http://www.google.com/search?hl=en&l...ghting+in+Java |
I've searched on google quite a bit and found plenty of examples but i just wondered if anyone had any experience in this and would be able to direct me to good method that wasn't too complicated.
I'm quite new to Java. |
>I'm quite new to Java.
And you're writing a graphical text editor with syntax highlighting... |
I've been studying Java a little over a year and not that long ago was hardly able to create a basic text editor.
|
I'm not new to programming.
I just wanted to use Java for the portability. I don't think changing to a different language should be too difficult. |
IIRC you can highlight syntax using StringTokenizer and either the rtf or html style in a EditorPane, I dont remember exactly how but look in that direction... Search on google for a plugin or something like that.
|
Quote:
|
| All times are GMT -5. The time now is 3:16 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC