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.
toggle fold
Submitted by
McSwell on
Tuesday, 13 February, 2007 - 16:40
I would like to assign a shortcut key to toggle fold. Thus, if the caret is on a line where it makes sense, ^T (let's say) would collapse the fold if the fold was already open, and expand it fully if the fold was already closed.
I don't see any obvious way to do that--there's no command in the Global Options | Shortcuts list that jumps out at me, although I could have missed it. (Nah. I thought I was wrong once, but turned out I was mistaken.)
I suppose I could write a macro, if I knew how to tell whether the current fold was folded or unfolded (and whether the current line was foldable). There must be a way, that's what the little triangles in the gutter do. But I'm not a Java programmer...
I googled this without finding anything obvious. Thanks for any pointers!
Mike Maxwell
XML parsing complete, 1 error(s)
Submitted by
McSwell on
Tuesday, 13 February, 2007 - 15:29
When I switch to one of my buffers that contains XML code I've written, I get a msg down on the status line:
XML parsing complete, 1 error(s)
How can I get it to tell me more about the error? (like what line it's on) I tried xmllint, but it claims no errors.
Mike Maxwell
use abbreviation for selection
Submitted by
sl_ime on
Sunday, 4 February, 2007 - 03:57
i have an abbreviation:
key: tag
abbreviation: <$1>$2$1>$end
how would i create a tag that would expand before and after a selection?
auto pairs - how to auto close ()
Submitted by
nephish on
Saturday, 3 February, 2007 - 17:19
is there a plugin or macro that i can use that will auto close a bracket or quote ?
this is a feature in scribes that i really miss in Jedit.
i have tried the abbreviations trick but it doesn't really work because sometimes i do want a space inside the quotes. and if i open a bracket or brace ( or { or [ and hit space twice, it closes.
anyway, if this is a feature already, please let me know how to turn it on, or if a plugin or macro, please let me know.
great editor / IDE you guys have here, i use it for everything
Help needed for regular expression replace
Submitted by
bagazsi on
Thursday, 1 February, 2007 - 12:35
I should like to manipulate text files containing several TITLE lines. The format of title is:
TITLE "
"
I have to add a few number of new text rows after all title lines. I've tried it with Regular expression replace. The search for line is
TITLE "
the Replace with is
TITLE "$1
addition of new text
I've got the following error message:
Sourced file: inline evaluation of: ``__internal_replace(ns) { this.callstack.set(0,ns); return ( TITLE "$1 add . . . '' Token Parsing Error: Lexical error at line 3, column 22. Encountered: "\n" (10), after : "\"$1":
Could anybody help me with the right syntax, or have a good idea to solve my problem?
Thanks in advance,
Gaspar
Wanted: macro to set buffer to explict folding
Submitted by
jhaefner on
Wednesday, 31 January, 2007 - 15:47
Hi, I'm new to jedit macros; I usually rely on "record macro" to get me started, but this time it doesn't work. I'd like a macro that I can shortcut to that sets a specific (or all) open buffers to explicit folding mode (w/o all the mouse clicks). A search of community macros did not reveal anything of recognizable help. Can anyone point me in the right direction to get started? Thanks.
-jim
change priority of docked windows
Submitted by
planckscnst on
Monday, 29 January, 2007 - 03:00
I have a couple of docked windows that I like to leave opened most of the time. One is docked to the right, the other to the bottom. Currently, the one on the right takes up the whole right side, and the on on the bottom takes up all the bottom except that which the right has already taken. I would like this to be the other way. I want to give that overlapping corner to the bottom-docked window, not the side one. Is there a way to do this.
I expected it to matter which order I docked them at (or the order which I toggled the fly-out), but it doesn't matter. The right-docked item always takes up that lower-right corner.
Can I define characters other than space for soft wrap (4.3pre9) ?
Submitted by
Lemon Juice on
Monday, 22 January, 2007 - 17:36
I like jedit a lot but there's one small problem that annoys me sometimes - in soft wrap mode lines are wrapped only if a space occurs. This is a problem with long lines which have long portions of text without spaces - in those cases the line is not wrapped at all and I get a nasty horizontal scrollbar. For example long urls with parameters:
<a href="some_page.php?parameter1=1¶meter2=1¶meter3=1¶meter4=1¶meter5=1¶meter6=1¶meter7=1¶meter8=1¶meter9=1¶meter10=1>
Is there a way to make jedit break lines also at other characters like for example special chars: ? & = " ' ?
superscript plugin with perl or perlscript... where?
Submitted by
wanda_b on
Friday, 19 January, 2007 - 17:44
I would like to try the superscript plugin with perl or perlscript, but google gives me no clue where to find the files necessary. Does anyone know where the files are, or have any comments on perl or perlscript use? Thanks.
Having dots for each line
Submitted by
AngryRobboto on
Tuesday, 16 January, 2007 - 06:55
I want to know if there is anyway if there is away to set jEdit to denote dots before the line of code is written
Example: http://www.rutherfurd.net/jEdit/jedit_ss1.jpg