TypoScript problem
Submitted by
blipbloup on
Friday, 16 November, 2007 - 10:15
Hi,
I'm using the TypoScript extension for jEdit and have the following problem :
In "Plugin Options", when I choose "TypoScript" and click on the + button to add a new site, nothing happen !
I tried with jEdit 4.2 and 4.3.
Thanks for help !
sql 2 html
Submitted by
mbisping on
Saturday, 17 November, 2007 - 11:25
Hello,
I'd like to present SQL from a database with syntax highlighting on a HTML-web page.
I thougt about combining the JEdit syntax package
with the Code2Html plugin.
However, even the old version of the plugin doesn't streamline with the jedit syntax code.
What would be the best/easiest way to create a java method like
/**
* param String sql - a number of sql statements
* returns syntax highlighted sql codes in HTML notation
**/
public String toSyntaxHighlightHTML(String sql)
Cheers
Meikel
display line numbers in gutter
Submitted by
xlinuks on
Saturday, 17 November, 2007 - 13:41
Hi!
I'm trying to set (programmatically) jEdit to display the line numbers at startup (These only appear if one presses Ctrl+E+T, jEdit doesn't seem to remember whether showing line numbers was turned on or off last time).
I think I have to tinker with the class Gutter.java from package org.gjt.sp.jedit.textarea
The method Gutter.setExpanded( true ); (I've put it in different locations) doesn't seem to work.
Does anybody have any idea what I'm doing wrong?
Creating edit modes
Submitted by
OBI_Ron on
Monday, 19 November, 2007 - 21:56
Hello Everyone,
I would like to create an edit mode for a specific file type / extension = igs. However, the file type has the following as the first line:
Because of this (I think), the syntax highlighting is taken from xml.xml, and ignores my igs.xml. Is there a way to force the file to use the igs.xml? Or will I have to modify the xml.xml?
If I do need to modify the xml.xml, is it best to use a new ruleset vs modifying an existing one?
Thanks in advance!
Creating edit modes
Submitted by
OBI_Ron on
Monday, 19 November, 2007 - 22:01
Hello Everyone,
I would like to create an edit mode for a specific file type / extension = igs. However, the file type has the following as the first line:
Because of this (I think), the syntax highlighting is taken from xml.xml, and ignores my igs.xml. Is there a way to force the file to use the igs.xml? Or will I have to modify the xml.xml?
If I do need to modify the xml.xml, is it best to use a new ruleset vs modifying an existing one?
Thanks in advance!
How to use SearchAndReplace in a loop?
Submitted by
tvojeho on
Wednesday, 21 November, 2007 - 16:59
Hello,
I have been using jEdit for a few months now, and it is an awesome editor. I have written a few macros, but I do not know Beanshell very well and now I am stumped.
I want to write a macro to correct some words using SearchAndReplace command. I would like to be able to define the words to be searched and replaced, and then to run a loop, where the replacements happen. I am vaguely aware of things such as arrays and maps, and I think in my case I am going to have to use one of those, but I don't know where to begin.
This is an example of how I want it to work (just a concept, not a working code):
//Define search and replace pairs
searchReplacePairs[] = ("thats","that's",
"lets","let's"
"...","...");
//Grab each pair and perform replace
Loop searchReplacePairs
{
SearchAndReplace.setSearchString(textToSearch);
SearchAndReplace.setReplaceString(textToReplace);
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(true);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.replaceAll(view);
}
As you can see, I do not know how to define the array, then how to parse it to get the textToSearch/textToReplace pair and process it in the loop. Any help would be welcome.
Thanks, tvojeho
Missing entry for Console in Global Options
Submitted by
hotcore on
Thursday, 22 November, 2007 - 19:26
Hello,
i created a command which i am able to run using Console.
Now i wish to associate that command with "Compile current buffer".
The documentation for the Console plugin says:
"Commandos can be associated with edit modes in the Console>Compile & Run pane of the Global Options dialog box.".
However, i cannot find an entry "Console" and "Compile & Run" in "Global Options" panel.
Any ideas?
TIA,
Arie
Key Command to Move From Console to Text Area
Submitted by
cpsmusic on
Thursday, 22 November, 2007 - 23:56
Hi,
Is there a key command that moves the caret from the console back to the text area?
Cheers,
Chris
Printing fails with a Beanshell error
Submitted by
cherax on
Friday, 23 November, 2007 - 05:28
When I attempt to print a text file, I get a long Beanshell error (and no printing) that starts with:
java.lang.NullPointerException: null attribute
at sun.print.IPPPrintService.isAttributeValueSupported(IPPPrintService.java:1100)
at sun.print.ServiceDialog$OrientationPanel.updateInfo(ServiceDialog.java:2092)
etc. etc. etc.
Checking the "use old printing API" doesn't help.
This happens with jEdit 4.2 stable and with 4.3pre11, and with java 5 and 6. I'm using Kubuntu 7.10.
Any ideas?
Nautilus (Nautilus.jedit-scheme v0.9 by Giger)
Submitted by
Giger on
Friday, 23 November, 2007 - 12:27
Similar to native Windows XP Brick color scheme.
lightweight text editor jar?
Submitted by
boardtc on
Friday, 23 November, 2007 - 15:25
I've never used JEdit and am relatively new to the Java community, so please be gentle

I need to provide a very basic text editor in my swing app. I don't think a commercial app would be allowed to distribute JEdit is my understanding but anyway the distribution footprint is likely too large for my needs...
Rather than reinventing the wheel are there any freely available fine tuned lightweight editors available in a jar that I can use for this purpose?
Thanks,
Tom.
maintaining or merging the xrefactory plugin
Submitted by
keeleyt83 on
Monday, 26 November, 2007 - 17:39
Hi all,
I was wondering if anyone here had used the xrefactory plugin? Its got some features that greatly surpass that of the javasidekick and projectviewer combination. The only problem is that its not currently being maintained.
Now I was thinking that maybe I could get some help attempting to update it to work with the current version of jedit, with the ultimate goal of maybe being merged into the javasidekick. What do you all think? I think that if we let the xrefactory plugin die, it will be a great loss for the community. With this plugin, jedit becomes a truly complete lightweight java environment. We need this. Is anyone interesting in helping me?
Dark Blue Colorful (Dark_Blue_Colorful_v0.4.jedit-scheme v0.4 by Tuomas Kareinen)
Submitted by
tuomas on
Wednesday, 28 November, 2007 - 18:28
A dark blue syntax scheme. This scheme is more colorful than the dark blue scheme supplied with Editor Scheme plugin.
4.3pre11, Vista, jre1.6, -reuseview argument not working
Submitted by
TimMagee on
Thursday, 29 November, 2007 - 21:55
Hi,
I've recently installed 4.3pre11 on Windows Vista and I'm having trouble getting any play from -reuseview.
Previously I've used 4.1, then 4.2 + Ollie R's jEditLauncher to achieve the same effect, but this time I thought I'd brace myself and get jEdit using a single view without resorting to jEditLauncher. I don't seem to be able to do it though. I can see on the forum that other people have succeeded, which inspires hope.
My use case is:
open Windows Explorer.
navigate to a folder with some text files in it
select two text files
right-click the selection and choose 'Open with jEdit'
BAM - two jEdit windows.
jEdit server is set up to run on startup, and is running during the above use case:
"C:\Program Files\Java\jre1.6.0_02\bin\javaw.exe" -Xms64M -Xmx192M -jar "C:\Program Files\jEdit\jedit.jar" -reuseview -background -nogui
(when first installed the -reuseview option wasn't there, I added it in a forlorn attempt to circumvent the problem).
The 'Open with jEdit' command associated with '*' in the registry under HKCR looks like:
[HKEY_CLASSES_ROOT\*\shell\Open with jEdit\Command]
@="\"C:\\Program Files\\Java\\jre1.6.0_02\\bin\\javaw.exe\" -Xms64M -Xmx192M -jar \"C:\\Program Files\\jEdit\\jedit.jar\" -reuseview \"%1\""
(this is as installed).
Can anyone help?
Cheers,
Tim
Creating a Console command to run in the background
Submitted by
ntbenari on
Monday, 10 December, 2007 - 07:08
I'd like a Console command to run in the background.
If I enter & at the end of the line within the Console
window it works, but I get parse errors when I try to add
it in the Commando xml file.
I've tried:
buf.append('&');
buf.append('&&');
buf.append('\&');
and every other escape I can think of ... but no luck.
Thanks
Moti
sftp connection dialogue box problems
Submitted by
andersos on
Friday, 14 December, 2007 - 09:34
I have some problems with this on Debian (lenny), KDE, Java 1.6.0_02.
1. When I try to connect from File Browser/Plugins/FTP the connection dialogue box isn't shown. (Same for both FTP and SFTP.)
2. Strange problem when switching to a session that contains remote (sftp) files. The connection dialogue box appears to have focus, but It's impossible to edit text in it. Clicking button works ok, so if I previously chose "save password" I can connect by clicking Ok button.
Connecting by choosing remote site from Favorites works totally ok.
multiple selection mode: how to automatically obtain selections without using the mouse
Submitted by
drefty on
Friday, 14 December, 2007 - 16:41
Problem:
Activating and deactivating 'multiple selection mode' is easy to do and works well. The problem is, I am looking for a way to obtain multiple selections automatically via macro, without having to hand-click the selections I want with the mouse.
The goal is to:
1) be able to multi-select every occurrence of a regex match in the entire document;
2) be able to multi-select every occurrence of a regex match within a specified line range (or within current selection);
3) do all of this without having to use the mouse
TIA for any info or pointers.
Whice main function is used for start the JEdit project
Submitted by
vistek on
Monday, 17 December, 2007 - 21:36
Hi everybody,
I want to look over JEdit source code.
I download JEdit source code and built it. It need apache ant I add the project. everything is good. But ı did not find correct main function to start. I use main function of TextArea and JEdit but some thing is wrong. Is there anybody to help me.
Thanks.
Automatic indenting of (PL) SQL
Submitted by
net-res on
Tuesday, 18 December, 2007 - 07:29
When I edit PL-SQL files in jedit, with jedit set to PL-SQL (or any other SQL) mode, C-i removes all indentation rather than fixing it. For example
BEGIN
____select seq.nextval into col1 from dual ;
____return col1;
END;
becomes
BEGIN
select seq.nextval into col1 from dual ;
return col1;
END;
after C-i
How can I fix this?
(had to add underscores since the forum removed leading spaces and tabs)
SGF Edit mode for Simple Game Format files. (sgf.xml v1.0 by Greg Wallace)
Submitted by
axol on
Wednesday, 19 December, 2007 - 03:50
SGF is used to document the Asian game 'Go' (http://en.wikipedia.org/wiki/Go_%28board_game%29) (In chinese Wei qi, in Korean Baduk). While there are numerous specialised graphical editors available, it sometimes happens that a file will get corrupted and needs to be hacked up by hand. And what better way that by using your favourite text editor?
This edit mode will facilate easy spotting of syntax errors and indenting of variations.