jEdit Community - Resources for users of the jEdit Text Editor
Archives
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!
modifying xml mode breaks auto-complete
Submitted by McSwell on Friday, 2 March, 2007 - 21:54
I copied the xml.xml mode file from the jEdit install directory to my .jedit directory (under docs-and-settings: this is on Windows). Then I slightly modified it by altering
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
to
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="FALSE">
for the case where Literal1 is begun by (and ended by) a double quote. (I did this to get the coloring to work right in a .xsd file, since quoted materials can easily span multiple lines.) I then altered the 'catalog' file in that same dir to refer to the local xml.xml file, by copying the entry for xml files from the catalog in the install dir.

But that seems to have broken the auto-completion, and auto-indentation as well. In particulary, when I type a tag
<foobar>
it used to be that jEdit would automagically supplying a close tag, giving:
<foobar></foobar>
(with the cursor conveniently placed between the two tags).
But with the modified xml.xml file, jEdit no longer does this.

Do I need to do s.t. else?

Mike Maxwell
Macros for working with Partials (Partial_Macros.zip v0.2 by Panya)
Submitted by Panya on Friday, 2 March, 2007 - 22:04
1. Open_Partial.bsh

Opens partial which name is selected (to select independently not necessarily if nothing is selected, selects the word under caret).

Example:

<%= render :partial => 'form' %> # select "form"(without quotes) and use macro will open _form.rhtml

2. Create_Partial_From_Selection.bsh

Creates a partial from the selected text (asks for the partial name without _ and .rhtml) and replaces selected text with a <%= render :partial => 'partial_name' %> erb fragment.

Including other files in a plugin?
Submitted by dmnapolitano on Sunday, 4 March, 2007 - 05:11
Hi, I'm new to plugin development, and I've got a question that I haven't been able to find an answer to. The plugin I'm working on requires several (non-Java) files, and I'm not sure how to include them with my plugin. I'm fairly certain that I need to add something to build.xml...I just don't know what Sad

Can someone point me in the right direction?

Thanks,
Diane
Use of # character in temporary buffer names
Submitted by mderouss on Sunday, 4 March, 2007 - 22:40
Not sure if this is a bug, but it's a problem for me.
I'm trying to use Infoviewer to view the output of an XLST transformation.
But the output of this transformation is placed into a temporary buffer, with a name that looks like '#Untitled-1#'.
Infoviewer appears to be treating the buffer name which it is fed as a URL. The presence of the '#', which is an unsafe character in a URL, therefore causes it to display a directory listing for the path up to the '#', which is perfectly reasonable behaviour for a browser under normal circumstances.
I can see two possible resolutions to this.
Firstly, Infoviewer treats a buffer name ( as opposed to a file name ) as something other than a URL. Might be architecturally tricky.
Secondly, JEdit ( if it is JEdit, as opposed to the XSLT transformer ) doesn't autogenerate temporary buffer/file names which would be invalid in URL's. This seems eminently reasonable.
So, what does the committee think - is this a bug ( and if so in what ? ), or a feature request ?
And on a related note, does anyone know a better way of achieving what I want to achieve ( automatic HTML preview of XSLT transformer output ) ?

Thanks,
Mark
Column selection
Submitted by BigNate on Monday, 5 March, 2007 - 17:25
I'd like to be able to select columns (vertically). I've seen this in one of Microsoft's Visual Studio editors (version 6 if I recall) and it is incredibly useful. Holding down a modifier key like shift, control or alt and dragging a rectangle across multiple lines should select columns (ie. cols 3, 4 & 5 across several full-length lines) which can then be cut/copy/pasted across multiple columns, inserting the text into the middle of multiple lines. This is very useful for HTML as well as programming code, allowing a developer to paste a list of variables or parameters into several lines of similar code.

Is there a way to do this already or to have someone implement this functionality in jEdit?
printing with folds
Submitted by AlexCory on Friday, 9 March, 2007 - 19:10
jEdit 4.3pre8 using Java 1.5.0_09

Hello,

I'm using a plugin called the Configurable Fold Handler in jEdit. It comes in handy for wrapping up code in the window using little triangles in the left sidebar. I tried to print my code today where I had a fold inside of it. I didn't expect the fold to print out since it was folded. I expected it to print out 1 line where the fold was displaying, but it actually printed out the entire contents of the fold.

Is there a way to print what the buffer window EXACTLY looks like so that it doesn't print the fold contents? if not, could this be implemented with a future release of a plugin?



to redo this issue:
fold a piece of code within your normal fold tags, for me thats { /* open and } */ close. Configurable Fold Handler should use regular expressions for this aka. \{|/\* and \}|\*/ I'm using php but I'm pretty sure this issue can arise in C,C++,and Java.



Thanks,

Alex Cory
Dominion Enterprises
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!

Writing A Plugin?
Submitted by salmanoglu on Monday, 12 March, 2007 - 12:28
I am newbie here and I have no idea about writing a plugin I read the documents but I dont Understand Can anyone send me a simple plugin example? Or tell me there is another document about Writing a plugin.I really need this HELP ME PLEASE!
ftp plugin and password mistake
Submitted by McSwell on Monday, 12 March, 2007 - 12:30
The ftp plugin has an sftp mode, in which you either enter a password at startup or use a key (but the key entry seems to be broken, see the thread 'sftp plugin : The key format is not a supported'). Occasionally I mistype my password. Rather than give me an error msg, it causes jEdit to hang, and I have to bring up the Windows Task Manager to kill it. (I don't know what happens on other platforms.)

I'm not a Java programmer, so I have no idea how to fix this. Any chance of getting it fixed?

Mike Maxwell
Properties Abbrevs for SuperAbbrevs Plugin. (properties v1.0 by elberry)
Submitted by elberry on Monday, 12 March, 2007 - 15:02
These abbrevs are for the properties file mode. They include abbrevs for creating jEdit plugins.
ErrorList can not find .c file
Submitted by blokeley on Tuesday, 13 March, 2007 - 23:57
This one is strange... if I use Commando to run make, and make generates some errors they appear in the ErrorList. When I open the ErrorList pane, the errors are listed with the correct file path and line number. So far so good.

However, when I click on an error, the line number changes to 1 and an empty buffer is opened.

The whole process works OK with .java files and javac errors, but not with .c files and make errors. Any ideas?

Setup:
Win XP Professional SP2
Sun Java 1.6.0
jEdit 4.3pre9
Console 4.3.2
ErrorList 1.4.2
Avoid automatic ident, faults in php edit mode
Submitted by Hans_Bauer on Thursday, 15 March, 2007 - 09:14
Hello all and thank you for the great program.

I'm using a different style of programming and so the automatic identing of JEdit (e.g. on closing braces) is extremely counterproductive for me. Is there any possiblity to switch off all identing? Due to problems of inserting a code example within this topic, you may have a look at 'http://www.h-bauer.de/temp/identing-php.txt' to see my style of programming.

Programming some php routines i found that the php-edit-mode seems to be faulty. I'm very sorry, but i could not bring all code to be visible within this thread. So again i only can ask you to have a look at 'http://www.h-bauer.de/temp/identing-php.txt' to see the amazing colors when using the php-edit-mode.

Many thanks in advance for your assistance.
Yours
Hans Bauer
Debian Package fails with sun-java6
Submitted by vikingr on Thursday, 15 March, 2007 - 22:17
Hey,

I've got Debian Etch with sun-java6 from Sid (Unstable).
When I tried to install jedit_4.3pre9_all.deb from your website, it fails
because the package has sun-java5 as a dependency.

As jEdit runs very well with sun-java6, it would be great if you could
fix that issue.

Thanks a lot!
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.
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.
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
xml-Plugin and xhtml-file-validation
Submitted by Ralph_W on Monday, 19 March, 2007 - 14:58
Hello i have a problem with jEdit / xml plugin

I want to validate xhtml documents with jEdit. I installed the XML-plugin and the required plugins (error list and the others) and everythings is going all right when I start jEdit. To test the function I'm opening a xhtml-file, which has some errors in it. But in the error-list there are no errors displayed. I think it has something to do with the DTD? The xhtml-DTD is in the first line of the file but I think it's not automatically dedected?

Thanx for help

Ralph
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
NASM (nasm.xml v1.0 by 13xforever)
Submitted by 13xforever on Thursday, 22 March, 2007 - 05:29
NASM launching commando file. Supports almost all command line parameters.
User login
Browse archives
« March 2007 »
MoTuWeThFrSaSu
 
3
6
7
8
10
11
14
17
18
20
24
29
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   108250
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309