solution for proper highlighting of script/style tags
Submitted by
silverquick on
Wednesday, 17 May, 2006 - 01:37
Hey all, I was always bothered by how SCRIPT and STYLE tags in HTML or PHP mode look kind of ugly because of how those modes have to delegate their contents to the right ruleset. This may have been discovered already but I've found a pretty simple solution. I'm not sure if I should release it to the files section though, as my mode files are pretty customized in other ways too (customized OCD style

).
Basically, my new rules highlight any occurences of '<script' or '<style' as 'MARKUP', along with their matching closing tags, and delegate everything between them to a 'mediating' ruleset, which imports the rules from the TAGS ruleset (so any attributes of the style or script tag are highlighted properly), but adds a rule to delegate anything after '>' to either CSS mode or Javascript mode. Doesn't sound as simple as I thought.
Anyway, I can't get HTML to show up on this forum, so if you want to see what the rules look like in html.xml, look at this file:
http://www.flowingcreativity.net/jedit-better-rules.txt
Manipulating jEdit from external process.
I was wondering if anyone knows if it's possible to access a running version of jEdit (and it's plugins) from an external application?
I have very,very little understanding of Java, but instincts tell me that maybe this could be achieved via a JVM instance in control of an application.
Could someone confirm whether this is possible?
The reason I would like to perform such a task is to invoke calls to the ErrorList pligin, via it's addError() call, as is outline here....
http://community.jedit.org/cgi-bin/TWiki/view/Plugins/PluginDebuggingTechniques
I would like to write a WIN32 application that performs such a tesk, and this would ideally be written in either VB or C.
Has anyone got any ideas how I would get started on this?
Many Thanks
Problem with a new mode
Submitted by
witchi on
Monday, 23 January, 2006 - 16:39
Hi,
I try to create a new mode and I have problems with to lines, which I have to distinguish. Maybe someone here has an idea...
FETCH :$$.$$.DEATH.DEATH(autopsy)
and
(test.tmpItem(::$$.$$.DEATH.DEATH.$$.AUTOPSY))
In the first line, DEATH(autopsy) is not a function, but test.tmpItem( in the second line. With the line
<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
I get the type FUNCTION for both strings. How can I avoid that?
Thank you
Andre
Any kind of diagrams?
Submitted by
clievers on
Thursday, 19 January, 2006 - 20:20
Does anyone know if there are any kind of diagrams that will allow you to see class relationships, etc without having to look at all of the code?
Thanks.
any future releases of jEdit planned or in progress?
Submitted by
paulflory on
Tuesday, 27 December, 2005 - 03:49
Hi all,
I've been an avid jEdit user for a number of years now and always look forward to new versions and plugins. However, I haven't seen any new jEdit versions for some time now, and wondering if development is still ongoing?
Thanks,
Paul
Is jEdit development still active?
Submitted by
sefer on
Wednesday, 26 October, 2005 - 07:50
Hi,
I've been using jEdit for a very long time now, and it's a great editor, much better than the lot of them out there.
However, in the past recent months I have somewhat missed the regular releases and updates that once appeared on a monthly basis. It appears that jEdit 4.3pre2 has been there for too long and I'm beginning to worry that development and updates for this excellent editor have ceased.
Please calm my worries and update the site with new releases
Thanks,
Sefer.
jEdit developement future
Submitted by
bwalle on
Saturday, 22 October, 2005 - 11:33
Hello,
the last beta release is from March 2005, so I just want to ask if there are plans to create new beta releases of jEdit or what's the future of this great tool. Thanks.
Regards,
Bernhard
what is initail value to jEdit.java ! where it is? ! how its pass !
Submitted by
balase on
Tuesday, 27 September, 2005 - 06:18
hi,
any one can explain how initial value pass to the jEdit.java (command line arguments) program and where you get that initial value? what is that file name?
thanks
Balamurugan SE
Terminating a rule set at a newline
Submitted by
silverquick on
Monday, 5 September, 2005 - 05:59
After using (and loving) jEdit for a little while, I realised that, in PHP mode, code like the following is highlighted incorrectly:
...
// this is a comment ?>
The problem is that PHP always ends parsing at the closing tag ('?>'), even if the line it's on is commented with // or #. However jEdit's highlighting does not reflect this. This issue is covered in a bug report at:
http://sourceforge.net/tracker/?group_id=588&atid=100588&func=detail&aid=958013
However, I thought I'd bring the discussion here, too. I tried putting the following in the php.xml file:
<SEQ DELEGATE="PHP_LINECOMMENT">//</SEQ>
<SEQ DELEGATE="PHP_LINECOMMENT">#</SEQ>
<RULES SET="PHP_LINECOMMENT" DEFAULT="COMMENT1">
<SEQ TYPE="NULL" DELEGATE="MAIN">?></SEQ>
<SEQ TYPE="NULL" DELEGATE="PHP">
</SEQ>
</RULES>
What this does is delegate any code following // or # to my special PHP_LINECOMMENT rule set. This rule set should then end at either a PHP closing tag, going back to HTML mode; or at an end-of-line, going back to normal PHP mode. The former works and the latter doesn't.
This is the main point I wanted to raise for discussion. Why doesn't the newline character (
 or 
) work, and is there a possible workaround? Using the newline character is also applicable to other highlighting issues, including (X/HT)ML attributes, because they can be spread over multiple lines.
Embedding jEdit in my Swing app
Submitted by Anonymous on Tuesday, 19 July, 2005 - 02:41
Is there documented method using jEdit as the text editing component within another Swing application? As a replacement for the JTextPane object, for example?
Extending jedit with lisp
Submitted by Anonymous on Sunday, 17 July, 2005 - 14:22
Have anybody information or experience in extending jedit with lisp or some other functional languages?
May be it's possible to write scheme code and then compile it with Kawa http://www.gnu.org/software/kawa/ into java byte-code and integrade with jedit?
Andrey
Building jEdit from source
Submitted by
clim1219 on
Saturday, 26 February, 2005 - 08:58
I checked out jEdit from CVS and try to build it but it complains of a missing ant target "dist-13".
I guess I miss something here. Could someone kindly point me to the right direction.
Here is the console log:
D:\projects\opensource\jedit>ant -Dant.full.path=C:/Java/apache-ant-1.6.2/bin/ant build
Buildfile: build.xml
prepare:
jEdit:
BUILD FAILED
D:\projects\opensource\jedit\build.xml:31: The following error occurred while executing this line:
Target `dist-13' does not exist in this project.
Total time: 1 second
Thanks,
Chris
Adding JEdit style syntax highlighting to standalone
Submitted by Anonymous on Wednesday, 23 February, 2005 - 21:31
I was trying add syntax highlighting to an existing standalone application. I think that JEdit has the best way of doing this. I don't mind including all the Jedit resources
including, startup scripts, etc, but I would like to just add the highlighting.
Is this in the wiki somewhere.
Here is my email(I may not monitor the forum)
berlin.brown { at } gmail.com
How is the about dialog's scrolling credits done?
Submitted by Anonymous on Sunday, 20 February, 2005 - 03:02
I briefly checked the CVS, but I couldn't reallt find the answer to my questions: How are the rolling credits in the about dialog done? Java2D or some external library?
Thanks!
missing packages
Submitted by Anonymous on Saturday, 19 February, 2005 - 16:37
hi, i downloaded jedit 4.2 and loaded the sources into eclipse 3.0.1. i mentioned, that for a error free compilation there are some packages missing. why are they not included into the scr? can somebody tell me where to download these missing packages. it's something about com.apple and also com.sun.javadoc, as I found out. this is my first try to compile such a project, so i'm a newbie. regards.
RE in modes
Submitted by Anonymous on Monday, 31 January, 2005 - 15:42
Hi,
I want to highlight [a-zA-Z]+Exception ...
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