jEdit Community - Resources for users of the jEdit Text Editor
Archives
Macro to make numbered list?
Submitted by speedracer5 on Thursday, 20 September, 2012 - 01:36
I'd like a simple macro to create ordered lists like so:

(1) A line of text.
(2) Another line of text.
(3) Another line of text.
(4) Another line of text.
(5) Another line of text.

I've already got a script that will put () at the beginning of each line, but I'm wondering if there's a way to automatically insert the numeral between the parentheses by adding +1 on each iteration.

TIA for any help.
Commando
Submitted by Arionyx on Thursday, 20 September, 2012 - 19:11
Is there anyway to change the location that commando uses from user files to program files?
How do I find usage information on plugins
Submitted by mlefevre on Thursday, 20 September, 2012 - 20:48
I have tried looking up help or usage information on jEdit plugins and can't find hardly anything. For instance Lucene, CodeHelper, and the console plugin. Specifically, I want to find out how the regexp processor for the error processor feature in the console plugin works. Does it apply all of the regexp definitions one at a time from top to bottom on every line of the output? Or, just it just apply the regexp definition at the top of the list and none of the others? Also, I don't understand how the "extra lines" regular expression can be used. The reason why I ask is that my build system does not output the full path to the file when an error occurs (only the file name itself). So, the error list window can't locate the file since it only knows file names relative to the top of the project tree.

Also, I'd like to find out whether the Lucene plugin can tie into the project viewer and process all files in the project as opposed to just the current or open buffers.

Finally, I'd like to troubleshoot the CodeHelper plugin's call tree feature as I can't seem to make it do anything at all.

Thanks in advance for any help,
Marc
SshConsole error: "java.lang.IllegalArgumentException: Invalid connection port"
Submitted by jdjensen on Sunday, 23 September, 2012 - 05:15
I very much enjoyed using the SFTP file browser plugin along with the sshConsole plugin in an older version of jEdit on Windows XP. When I installed the newest version and tried to use these two plugins, the remote file browser worked but the sshconsole did not. When I clicked on a file in a remote folder (the sshconsole is supposed to move to the directory the file is in) it gave me an error like the following:

[no sftp:// connections?] >Last login: Sat Sep 22 16:24:03 2012 from 75.85.183.132
Error while running process: java.lang.IllegalArgumentException: Invalid connection port: ' Sat Sep 22 16'

I since got a new computer running Windows 7, and encounter the same problem (that's where the above error output comes from, to be precise). I tried it on Linux (Ubuntu), however, and the sshconsole worked fine. But I do enough work on Windows that I am anxious to fix it.

I couldn't find any option within jEdit to change connection ports, and if I did, I wouldn't know what to do with it. And I've searched online and haven't found any references to the problem in forums. Has anyone else encountered it? Any ideas on how to fix it?

Thanks in advance for your time.
Create/Modify file silently in background
Submitted by JanciB on Sunday, 23 September, 2012 - 09:06
How can i create/modify file in the background? I have this:

private final String filePath = "c:/dummy.txt";

void updateFile()
{
jEdit.newFile(view);
Calendar rightNow = Calendar.getInstance();
textArea.setText(Calendar.getInstance().getTime().toString());
Buffer scratchBuffer = view.getBuffer();
scratchBuffer.save(view, filePath);
jEdit.closeBuffer(view, scratchBuffer);
}
updateFile();

It creates/modifies file dummy.txt, writes to it current date. It is opening new buffer so it is visible for a brief time, until the macro closes it.
Can I make this in the background?
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
User login
Browse archives
« September 2012 »
MoTuWeThFrSaSu
 
1
2
3
4
6
7
8
9
11
12
14
15
16
17
18
19
21
22
23
30
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   83281
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293