question
Submitted by
McSwell on
Thursday, 19 April, 2007 - 14:11
I'm trying to add special coloring for #ifdef (etc.) in Python files. These constructions are not a part of standard Python, hence not included in the standard jEdit Python mode. That is, my intention is to use the built-in Python coloring for all the normal Python keywords etc., and to extend this by adding a different coloring for #ifdef etc.
I did the following: to my user's 'catalog' file (i.e. the one in c:\documents and settings\<username>\.jedit\modes) I added the following line:
<MODE NAME="python2" FILE="python.xml" FILE_NAME_GLOB="*.py" />
Then I created in that same directory a file python.xml, which leaving out the usual stuff has the following:
<RULES>
<IMPORT DELEGATE="python::MAIN"/>
<KEYWORDS>
<KEYWORD4>#ifdef</KEYWORD4>
</KEYWORDS>
</RULES>
(I tried to indent the above, but I'm not sure how to do that in this forum...) And of course I set a special color for KEYWORD4 in jEdit's Utilities | Global Options: Syntax Highlighting.
If I'm understanding the documentation in the jEdit Help, this is the recommended way to extend a built-in coloring.
But it doesn't work. That is, I don't get any special coloring for #ifdef, only the normal Python coloring.
I have ruled out a number of things that I could be doing wrong. Specifically, I get #ifdef colored appropriately (as KEYWORD4) if I leave out the <IMPORT DELEGATE> line--but then I of course don't get any of the normal Python coloring. I have also verified that there are no KEYWORD4 tags in the original (as-shipped) python.xml file.
So what am I doing wrong?
Mike Maxwell
looking for two features (count selected, trim spaces)
Submitted by
AndyColson on
Friday, 13 April, 2007 - 20:25
Hi all,
I am trying to find a plugin/macro to show (in the status bar) how many lines/characters are currently selected. I'm sure someplace I saw a plugin for that but now I cannot find it. Any ideas?
Also, I'd like an option to trim spaces (on save would be great), is that an option or plugin someplace?
Thanks,
-Andy
Full path name in printouts?
I'd like the header of my printouts to include the entire path to the file, rather than just the filename. (I work on projects where many files have the same name.)
Is this possible with stock jEdit, or will I need to write a plugin to do this?
Feel free to move this to the Feature Requests forum if it fits better there...
projectviewer and empty dirs
Submitted by
dirtymafia on
Tuesday, 10 April, 2007 - 04:15
It seems that when I make a new project or 're-import' the current project empty dirs are not included. I have not found an option for changing this behavior. Is this something that is wrong with my setup or am I just not finding the option I need to change. Any help or guidance would be much appreciated.
Can I adjust line spacing?
Submitted by
frisky on
Sunday, 8 April, 2007 - 01:55
Can I adjust line spacing?
How Do I Stop jEdit Server Running at Startup on Windows?
Submitted by
cpsmusic on
Friday, 6 April, 2007 - 06:25
Hi,
Is there a way to stop jEdit Server running at startup on Windows?
Cheers,
Chris
Search And Replace Filter?
Submitted by
gamigin on
Thursday, 5 April, 2007 - 17:16
I can do a Search and Replace on all my Java source by using "*.java" in the filter field.
I can also search all my XML files by using "*.xml" in the filter field.
How do I serch both Java source and XML files in the same search? I've tried space, comma, semi-colon as delimiter and those don't work. I've searched the documentation and nothing is mentioned. Any ideas?
java heap memory
Submitted by
damaru on
Tuesday, 3 April, 2007 - 00:16
Hey,
I am working with some database file, just somthing over 10meg but I get the java heap memory exceeded. Jedit point me to the manual but I couldn't find where to change my java heap memory whatever it is. Where can I change that ?
ANSI Encoding
Submitted by
techogre on
Tuesday, 27 March, 2007 - 14:41
Hello,
I'm trying to use jEdit to edit XML files. These files include french and english text, so there are accented characters. When I open the file in Notepad or Notepad++, the accented characters show up properly, and the file is noted as being encoded in "ASNI Encoded". In jEdit, the characters show up as boxes.
I prefer jEdit for the XML and Freemarker support.
Can anyone help?
Thanks!
Identation of .rhtml files in jedit
Submitted by
suramakr on
Monday, 26 March, 2007 - 16:35
I am having difficulties getting jedit to properly indent by .rhtml files. The colorification takes place right, but somehow the various tags don't seem to indent at all. They all start from column 0. Is there any setting I need to take care of?
All ruby programs wrap and indent properly.
thanks
Sudhakar
Modes:: How do you match the beginning of a file w/ a regex?
Submitted by
LDiracDelta on
Friday, 23 March, 2007 - 18:45
I'm creating a Specman syntax highlighting mode
and I'm trying to make all the text from the start
of the buffer to "<'" be highlighted.
Some sort of regex like:
{BEGINNING_OF_FILE}
^<'
Does anyone know how to do that?
Modes:: How do you match the beginning of a file w/ a regex?
Submitted by
LDiracDelta on
Friday, 23 March, 2007 - 18:44
I'm creating a Specman syntax highlighting mode
and I'm trying to make all the text from the start
of the buffer to "<'" be highlighted.
Some sort of regex like:
{BEGINNING_OF_FILE}
^<'
Does anyone know how to do that?
associate text files with jedit
Submitted by
frisky on
Friday, 23 March, 2007 - 03:13
Hi,
It should be easy to associate text files w/jedit but I can not find jedit.exe anywhere on my windows2000, but jedit works OK.
The FAQ say something about a jedit launcher....
I'm looking for simple cookbook step by step instructions on how to get files associated w/jedit...please link me
thanks
Limiting search in subdirectories
Submitted by
atg2d on
Wednesday, 21 March, 2007 - 07:42
Hi is it possible with some plugin or from jEdit itself to limit the search in subdirectories to NOT search in a particular directory and it's subdirectories.
Here is my situation:
I have a mirror of a working site and in it there is a folder where users upload photos and videos. This folder has more than 50000 subfolders and much more files in them. The code for the site is above that big folder, and there are some other subfolders with javascript, css, etc. When i want to search something in my code(all the code javascript,css...) i have to do it folder by folder - i can't use the option "Search in subdirectories" because it will start searching in that big folder too. Normally i would remember to turn that option off, but sometimes i forget and the search starts in the big folder too and the only way to stop it is to kill the java process(which sometimes leads to resetting most of my settings in jEdit to the default ones).
So is there any way to tell jEdit to search in subfolders but not in that particular one and others like it?
Thanks
getting SuperAbbrevs to run
Submitted by
mamboze on
Monday, 19 March, 2007 - 04:03
Hi,
A first post. I've just started with jEdit 1.5.0_06 and am very happy with it, but (always a but) I do have one problem. I can't get SuperAbbrevs to work. I've looked at one tut here
http://ifakedit.com/log/2006/02/19/jedit-tutorial-a-how-to-on-abbreviations-superabbrevs-in-html-ruby-on-rails-and-more/
I can't see where to put the key combo to expand the abbreviations shown in the Plugins > Plugin Options > SuperAbbrevs>Abbreviations dialog. I think I'm missing something rather obvious so any help would be very welcome
ftp plugin very slow.
Submitted by
nalrim on
Friday, 16 March, 2007 - 02:27
I'm using jEdit 4.3pre9 on Windows XP.
By the way, ftp plugin is very very slow.
I can't seem to edit remote file.
I want help for this problem.
daylight savings time
Submitted by
was8309 on
Thursday, 15 March, 2007 - 23:01
in JEdit v4.2, the time displayed in the status bar is not reflecting the new dst change. Insert_Date.bsh also does not, the code is :
Calendar rightNow = Calendar.getInstance();
// zone offset with daylight savings
int zoffset = (rightNow.get(Calendar.ZONE_OFFSET) +
rightNow.get(Calendar.DST_OFFSET)) / 60000;
I'm guessing I don't have a setting correct. By default does Jedit not use the JRE on my machine?
At http://ablogofideas.net/blog/2007/02/19/test-your-java-for-new-daylight-saving-time-changes/ there is a dst checker that I ran and got :
Hello, you are running Sun Microsystems Inc. JVM version: 1.6.0
OLD Daylight Saving Time (DST) dates: Apr 1 - Oct 28
NEW DST dates: Mar 11 - Nov 4
Now (2007-03-15 12:48:39 EDT) DST offset: 1 hours
2007-03-12 01:00:00 EDT DST Offset: 1 hours
2007-04-02 01:00:00 EDT DST Offset: 1 hours
2007-10-27 01:00:00 EDT DST Offset: 1 hours
2007-11-03 01:00:00 EDT DST Offset: 1 hours
.-----------------------------------------------
. Your JVM is OK with the new DST changes .
.-----------------------------------------------
sorry I know very little about java, any advise will be appreciated, thanks.
Highlighting Issue
Submitted by
Lance on
Friday, 9 March, 2007 - 20:29
I am having trouble getting my syntax highlighting to work with one form of comments. I am making a highlighter for Pick BASIC. Comments can be in the following format:
REM This is a comment
* This is a comment
A = A + 1 ;* Everything after the * is a comment
100 * Everything after the * is a comment. The 100 is a label.
MYLABEL: * Everything after the * is a comment. The MYLABEL: part is a label.
Currently everything is highlighting fine except the last two comment types. It doesn't seem to recognize them as comments. Here's the relevant part of the highlighter xml:
<MODE>
<PROPS>
<!-- <PROPERTY NAME="lineComment" VALUE="*" /> -->
</PROPS>
<RULES IGNORE_CASE="TRUE" HIGHLIGHT_DIGITS="TRUE">
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
<BEGIN>"</BEGIN>
<END>"</END>
</SPAN>
<SPAN TYPE="LITERAL2" NO_LINE_BREAK="TRUE">
<BEGIN>'</BEGIN>
<END>'</END>
</SPAN>
<!-- conditional compilation -->
<EOL_SPAN_REGEXP TYPE="COMMENT1" AT_LINE_START="TRUE">\d+ \*</EOL_SPAN_REGEXP>
<EOL_SPAN TYPE="KEYWORD2">#if</EOL_SPAN>
<EOL_SPAN TYPE="KEYWORD2">#else</EOL_SPAN>
<EOL_SPAN TYPE="KEYWORD2">#end</EOL_SPAN>
<EOL_SPAN TYPE="COMMENT1" AT_WHITESPACE_END="TRUE">*</EOL_SPAN>
<EOL_SPAN TYPE="COMMENT1">;*</EOL_SPAN>
<EOL_SPAN TYPE="COMMENT1">; *</EOL_SPAN>
<EOL_SPAN TYPE="COMMENT1">REM</EOL_SPAN>
Functions and operators are listed below here but didn't seem relevant to the problem. Any help on getting this working would be appreciated. Thank you in advance!
Comment indentation
Submitted by
iutinvg on
Friday, 2 March, 2007 - 04:21
Hi,
jEdit indent the comment block as following:
/**
* Blah...
*/
Is it possible to make him do it as following:
/**
.* Blah...
.*/
Did anybody find a way todo it without patching?
Thank you very much for advance!
Can XML plugin be configured to use a specified schema?
Submitted by
guyr on
Thursday, 1 March, 2007 - 19:35
I'm attempting to use the XML plugin to edit OpenLaszlo files (http://www.openlaszlo.org). The problem is that I cannot include the schema name inside the Laszlo source file; Laslzo won't accept that. Is there any way I can identify to the XML plugin that when it sees files with an extension of .lzx, it should automatically use a particular schema? Thanks.