Regular Expression Syntax Help
Submitted by Anonymous on Thursday, 27 January, 2005 - 21:39
I have the following on 3 separate lines in many, many files. So, I want to Search and Replace with regular expressions. Here are the lines:
< td >< img src="/theme/images/mainmenu-left-off.gif" alt="[" >< /td >
< td background="/theme/images/mainmenu-background-off.gif" >< span class="menu_lower" >< a href="/foo//links/" >Bar< /a >< /span >< /td >
< td >< img src="/theme/images/mainmenu-right-off.gif" alt="]" >< /td >
My regular expression can't find the above, and I don't understand why, any suggestions:
\s*\S*< td >< img src="/theme/images/mainmenu-left-off.gif" alt="[" >< /td >\r*\n*\s*\S*< td background="/theme/images/mainmenu-background-off.gif" >< span class="menu_lower" >< a href="foo" >Bar< /a >< /span >< /td >\r*\n*\s*\S*< td >< img src="/theme/images/mainmenu-right-off.gif" alt="]" >< /td >
Thank you. Sorry, the above code looks dirty. I tried < code > and < ? php > here so it would cleanly post, but those input formats are not available. I had to add a space after every < and before every > . This message is difficult to read
.
using modes-xml in an other project
Submitted by Anonymous on Friday, 21 January, 2005 - 09:09
We develop an other java editor. Now we are using the mode-Files of jedit.
Is this ok for you?
Our Project is also under the GPL
CU
Christian Hennig
University of Rostock
Help subsystem
Submitted by
NovaX on
Saturday, 11 December, 2004 - 02:12
I'm developing a web application using JSP/Servlets and I really like jEdit's help interface. I'd like to seperate it from jEdit and convert it into a servlet. I downloaded the source code, but all I can find are the XML/HTML help files, not the Java source. Could someone point me in the right direction?
Thanks,
Ben
New releases
Submitted by
Steinam on
Tuesday, 2 November, 2004 - 10:27
Hi All,
it has been some weeks now JEdit 4.2 was released. When will be the next release ? Any hints ?
KS
Creating SQL Server Types
Submitted by Anonymous on Monday, 1 November, 2004 - 15:52
it could be a good idea to have a guide or tutorial about creating SQL Server Types for the SQL Plugin, and add the FirebirdSQL Server Type for the SQL Plugin please.
-----------------
Jesus Rafael Sanchez
Syntax Highlighting (package org.gjt.sp.jedit.syntax) - How?
Submitted by Anonymous on Monday, 13 September, 2004 - 10:25
API changes for v 4.2 include the following:
>The org.gjt.sp.jedit.syntax package can now be used in other programs.
>All you need to provide is error handling and logic for locating the
>XML mode files. See the package documentation for details
I don't really understand how I can use the package in my own program.
The comments within the API doc are pretty short :-|
Do I just have to use my own JEditTextArea instance? Maybe some of you
have already tried this feature and could give me some advice.
Many Thanks,
Felix
Using maven to build jEdit
Submitted by Anonymous on Monday, 13 September, 2004 - 01:23
I think moving the build system over to maven will make a lot of difference.
Using maven to build jEdit
Submitted by Anonymous on Monday, 13 September, 2004 - 01:17
I think moving the build system over to maven will make a lot of difference.
jEdit CVS access
Submitted by
curoles on
Wednesday, 25 August, 2004 - 04:20
I made a plugin that I use myself for a while.
Now I would like to bring it into the CVS, so
I follow the instructions and ask Slava and M.Dillon
to add my ID in order to get access to the CVS and
have no reply from them. What is going on? What am
I doing wrong?
Programming the JeditTextArea.java file?
Submitted by Anonymous on Monday, 12 July, 2004 - 09:22
hi, i am trying to add a scrollfeature to the jedittextarea, but somehow it wont scroll:-(. how can i aneable the scrollbars?
THANKS
Programming the JeditTextArea.java file?
Submitted by Anonymous on Monday, 12 July, 2004 - 09:22
hi, i am trying to add a scrollfeature to the jedittextarea, but somehow it wont scroll:-(. how can i aneable the scrollbars?
THANKS
ICU Unicode for Java with JNI
Submitted by Anonymous on Tuesday, 8 June, 2004 - 10:49
http://oss.software.ibm.com/icu4j/icu4jni/icu4jni.html
Mega Text
Submitted by Anonymous on Tuesday, 8 June, 2004 - 10:48
http://vigna.dsi.unimi.it/papers.php
http://mg4j.dsi.unimi.it/
Compatibility: JEditPane vs. JEditTextArea
Hello,
i'm using a java-editor-application developed for my own needs.
Now i'm interested in migrating from JEditPane to JEditTextArea. And now the question: is there anywhere a documentation if there are incompatibilites between these two components.
I've read, that there will be a stand-alone component of the JEditTextArea. Is this right? And if yes, when do you think, will it be published.
Is there also a possibility to take the syntax-highlighting and add it to a standard JEditPane without using JEditTextArea? The Syntax-Highlighting found at http://syntax.jedit.org/ is a little bit out of date, so this isn't interesting to me.
The highlighting as a bean, that could be plugged in a JEditPane would be really great. Are there any ideas, if that's possible?
Thanks for your help! Kind regards......
What programming softwares are used to develop jEdit ?
Submitted by
goa103 on
Saturday, 1 May, 2004 - 12:27
Hello,
I discovered jEdit a few days and wonder what are the programming softwares used to design and develop it : IDEs, tools, WYSIWYG dialog editors (if any)...
Once upon a time...
In 1998 I bought a book to learn Java as we had an applet development class at the university. I got [i]Teach yourself Java 1.2 in 21 days[/i] by Laura Lemay and Rogers Cadenhead. As I had a C/C++ background, once the class was over, I gave up on learning Java and went back to my good old Microsoft Visual Studio, MFC (Microsoft/C++ GUI programming libraries like AWT/Swing). A few days ago I asked on Usenet if someone knew a good editor to replace my good-old but buggy NoteTab Light (improved Notepad, text editor). Someone adviced me to try jEdit.
At first I thought that jEdit was just an other boring programming editor. But I quickly checked out the main website and community... It really reminded me of HTML-Kit, one of my favourite web design & development tool. Plugins, manuals, forums, you name it. To say the least, I'm impressed. I know a few other Java softwares but none of them is as well polished, designed, extensible and powerful as jEdit. The plugin manager is terrific as it allows you to extend jEdit from the editor itself, read the descriptions, select the one you want to download and install... Done in a few minutes. I got the BufferTabs plugin and even if jEdit doesn't seem to remember that the plugin was checked (I have to check it each time I launch jEdit), it works like a charm. I was also able to switch from one look & feel to the other, Windows look & feel is just as good as the MFC one. Last but not least I didn't even know that Java has its own Microsoft HTMLHelp (chm).
So as a poor lonesome Microsoft Visual Studio/MFC user and developer, I wonder what are the softwares used to design and develop jEdit. What are the IDEs that can be compared to Microsoft Visual Studio ? A tool that would allow me to design dialogs using WYSIWYG and powerful tools, debugger, profiler, all jEdit features... and more ? I know jEdit has some good plugins to debug and stuff but I don't think I can design dialogs, menus, software interfaces, using jEdit. Am I right ?
I only know a few IDEs and can't really try them all. I know Eclipse but for what I know, there's no dialog editor.
End of story, bye bye (Shrek ^^).
Last but not least, do you know of any good books to learn jEdit-like software design and development ? I found hundreds of books about Java development but I can't believe I have to read them all to develop a single software. I got 2 MFC books to learn MFC and Windows software development, it was far sufficient.
Thanks for your time and help,
JM
JEdit Syntax Package
Submitted by Anonymous on Thursday, 15 April, 2004 - 17:35
JEditSyntax on syntax.jedit.org is much outdated now, though usable (with two deprecated methods). Will current jedit syntax be available as separate component? Looking into current source, it looks like JEditTextArea is highly integrated into JEdit application - I guess there's not much folks who would want to make changes just for JEditTextArea was available as bean..
Embedding jEdit in other applications...
Submitted by Anonymous on Wednesday, 17 March, 2004 - 23:53
I am evaluating jEdit as a possible text editor for one of my applications. But I can't see any documentation on that. Could anyone point me to any earlier attempts and/or documentation that could help me.
I don't want to rewrite syntax colouring, undo/redo support, access to file system from scratch!
Syntax package needs a face lift.
Submitted by
ramiojares on
Tuesday, 2 March, 2004 - 12:18
I have been creating a parser that can create syntax highlighted html documents or fragments based on jEdit mode files.
jEdit has an honourable list of modes.
There is also some explanation of how the syntax package interprets these mode files.
That documentation is only partial though and the separate syntax package is unmaintained.
That is why I decided to do my own parser but reuse the ideas and mode files from jedit for a generic syntax highlight component.
But I noticed that the modes and the regex:es used would need more of specification work so that maybe in the future also other editors could parse those mode files and finally there would emerge some sort of standard in specifying syntax highlight modes.
Of course this specification would do good to jEdit's syntax package and it's corresponding documentation.
In the course of the following weeks my intention is to start that process as replies to this topic and if it starts catching some interest then maybe these ideas will be implemented.
My intention is not to add more features to the syntax highlighting system but rather to define it more precisely and also increase it's simplicity and elegance.
Why use gnu.regexp package for regular expressions?
Submitted by
ramiojares on
Friday, 27 February, 2004 - 14:29
All regular expressions in jEdit are using syntax very different from the syntax
JDK uses. Why not start using the JDK's regex package?
Tweaking ProScroll for a newbie
Submitted by Anonymous on Friday, 9 January, 2004 - 19:21
Slava,
Using the ProScroll applet, how can I make text run continuously?
Nbaird@netzero.com