jEdit Community - Resources for users of the jEdit Text Editor
Archives
solution for proper highlighting of script/style tags
Submitted by silverquick on Wednesday, 17 May, 2006 - 01:37
Hey all, I was always bothered by how SCRIPT and STYLE tags in HTML or PHP mode look kind of ugly because of how those modes have to delegate their contents to the right ruleset. This may have been discovered already but I've found a pretty simple solution. I'm not sure if I should release it to the files section though, as my mode files are pretty customized in other ways too (customized OCD style Smiling).

Basically, my new rules highlight any occurences of '<script' or '<style' as 'MARKUP', along with their matching closing tags, and delegate everything between them to a 'mediating' ruleset, which imports the rules from the TAGS ruleset (so any attributes of the style or script tag are highlighted properly), but adds a rule to delegate anything after '>' to either CSS mode or Javascript mode. Doesn't sound as simple as I thought. Smiling

Anyway, I can't get HTML to show up on this forum, so if you want to see what the rules look like in html.xml, look at this file:
http://www.flowingcreativity.net/jedit-better-rules.txt
unable to use line predefined variable in beanshell
Submitted by jeditfan on Wednesday, 17 May, 2006 - 03:18
Hi
I am a novice user and so far am pleasantly surprised with JEdit features. I face a small problem which I think is due to my lack of exp with this. I want to do a search and replace some string with a beanshell syntax.

for eg
search - (\d+)=(\w+)
replace - _1 + text.getCaretLine() + _2 (beanshell expression).

I get an error to the effect that text is undefined. For that matter, I get the same error even for the predefined var. "line". What is going on?

Any insight will be highly appreciated.
Thanks
SK.
horizontal scroll?
Submitted by jimjo95 on Wednesday, 17 May, 2006 - 14:20
most MacOSX apps. allow horizontal scrolling using shift+scroll. Anyway to recreate this in jEdit?

thanks
[ProjectViewer] Change the filter system
Submitted by Baldurien on Wednesday, 17 May, 2006 - 22:25
When using the Project Viewer, with the file I edit using jEdit, I've got a lot of temp' file (example : foo.php~) which I'd like to cut off the project tree.

The problem is that the glob pattern does not accept to do something like this :

!*~

This will restrain file finishing by ~ as well as other file...

I think it could be better to have a set of regexp : we would have a JTable, with a list of regexp (in order of priority) so that when we reimport file using filter, it use regexp to match (or not) the file name.
[FILE SYSTEM BROWSER] multiple Connection Tabs
Submitted by ecc on Thursday, 18 May, 2006 - 11:38
Hi,

Feature-Request 1: Directory-Tabs in System Browser

i work on many projects in many directories at the same task. If i use the bookmark-function and the Path-History, i can get quick-access to the latest directories, im working in. Ok, thats the status!
I work for a long time with homesite. There are Tabs ([Files1][Files2]) to switch between two project-folder with one click. Please also add this feature to the File System Browser in jEdit.

Feature-Request 1: HTML-Preview

in Homesite, there is a Tab in all Edit-Windows, to show the code in the default Webbrowser.
Is there a option to do that in jEdit?

Regards,
Andreas
Ignore SVN directories when searching in directories
Submitted by peetucket on Thursday, 18 May, 2006 - 16:15
Hello All,

Does anyone have a handy filter that will ignore the "svn" directories for a subversion project when doing a search for files in a directory? I often search for code in my subversion based project directories using the "Search and Replace" feature and don't want all the redudant files in the "svn" directories to show up too. I have not figured out a way to use the filters feature to filter out those files.

Thanks!
Peter
Is there a new version of the JCompiler in development?
Submitted by iNetRunner on Friday, 19 May, 2006 - 08:40
Hi,

Is there perchance a new version of the JCompiler in development? 1.7 can't seem to work with 4.2.xx versions of the Console. (Gives the java.lang.NoSuchMethodError: console.Console.setShell(Lconsole/Shell;... error. Also seems to work with only some success in Console 4.1.2.)
Toggle_Toolbar.bsh v1 by Oswald
Submitted by Oswald on Saturday, 20 May, 2006 - 21:07
Toggle view of main toolbar. You can assign some shortcut for this macro and change view of main toolbar without opening Options dialog.
Bean error when opening Outline Plugin
Submitted by jf_allie on Sunday, 21 May, 2006 - 23:58
Hello, I just installed jEdit on a WinXP computer. I'm particularly interested in its folding feature. I installed SideKick and Outline, but when I try to launch Outline I get this Bean error message: many thanks jf -------------------------------------------- java.lang.NoSuchMethodError: sidekick.SideKickPlugin.getErrorSource(Lorg/gjt/sp/jedit/View;)Lerrorlist/DefaultErrorSource; at outline.OutlineTree.update(Unknown Source) at outline.OutlineTree.(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at bsh.Reflect.constructObject(Reflect.java:668) at bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:123) at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:114) at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102) at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47) at bsh.Interpreter.eval(Interpreter.java:641) at bsh.Interpreter.eval(Interpreter.java:731) at bsh.Interpreter.eval(Interpreter.java:720) at org.gjt.sp.jedit.BeanShell._eval(BeanShell.java:446) at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:410) at org.gjt.sp.jedit.gui.DockableWindowManager$Factory.createDockableWindow(DockableWindowManager.java:533) at org.gjt.sp.jedit.gui.DockableWindowManager.showDockableWindow(DockableWindowManager.java:742) at org.gjt.sp.jedit.gui.DockableWindowManager$Factory$OpenAction.invoke(DockableWindowManager.java:553) at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229) at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2910) at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
Dockable window problem.
Submitted by inami on Monday, 22 May, 2006 - 17:23
How to create a new dockable window and make it docked into the view(at any of the 4 positions TOP,BOTTOM,LEFT,RIGHT except FLOATING) defaultly?
--AutoIt v3-- support request
Submitted by Haloloooya on Tuesday, 23 May, 2006 - 02:31
Is anyone interested in providing AutoIt support for editing files with JEdit? http://www.hiddensoft.com/autoit3/

Thanks.
Problem with LilyTool Installation
Submitted by Eng1958 on Tuesday, 23 May, 2006 - 12:40
Hello,

jedit version: 4.2final

after installation of LilyPondTool Version 02.9 I get the following error message (see messages below) as a BeanShellError and
the PluginError when I start jedit:

"c:\My\Program Files\jedit\jars\LilyPondTools.jar:
Cannot start: java.lang.UnsupportedClassVersionError: lilytool/LilyToolPlugin (Unsupported major.minor version 49.0)#
Try updating a newer version og the plugin"

But I don't know a newer version of LilyPondTool

Any idea ??
Thanks
D.E.

a

java.lang.UnsupportedClassVersionError: lilytool/parser/LilySideKickParser (Unsupported major.minor version 49.0)

at java.lang.ClassLoader.defineClass0(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.lang.ClassLoader.defineClass(Unknown Source)

at org.gjt.sp.jedit.JARClassLoader._loadClass(JARClassLoader.java:325)

at org.gjt.sp.jedit.JARClassLoader.loadClass(JARClassLoader.java:76)

at java.lang.ClassLoader.loadClass(Unknown Source)

at bsh.BshClassManager.plainClassForName(BshClassManager.java:224)

at bsh.BshClassManager.classForName(BshClassManager.java:170)

at bsh.NameSpace.classForName(NameSpace.java:1265)

at bsh.NameSpace.getClassImpl(NameSpace.java:1165)

at bsh.NameSpace.getClass(NameSpace.java:1106)

at bsh.Name.consumeNextObjectField(Name.java:301)

at bsh.Name.toObject(Name.java:202)

at bsh.BSHAmbiguousName.toObject(BSHAmbiguousName.java:59)

at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:86)

at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)

at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)

at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)

at bsh.Interpreter.eval(Interpreter.java:641)

at bsh.Interpreter.eval(Interpreter.java:731)

at bsh.Interpreter.eval(Interpreter.java:720)

at org.gjt.sp.jedit.BeanShell._eval(BeanShell.java:446)

at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:410)

at org.gjt.sp.jedit.ServiceManager$Descriptor.getInstance(ServiceManager.java:321)

at org.gjt.sp.jedit.ServiceManager.getService(ServiceManager.java:264)

at sidekick.SideKickPlugin.getParser(SideKickPlugin.java:142)

at sidekick.SideKickPlugin.getParserForBuffer(SideKickPlugin.java:167)

at sidekick.SideKick.setParser(SideKick.java:131)

at sidekick.SideKick.handleBufferUpdate(SideKick.java:298)

at sidekick.SideKick.handleMessage(SideKick.java:142)

at org.gjt.sp.jedit.EditBus.send(EditBus.java:148)

at org.gjt.sp.jedit.Buffer.propertiesChanged(Buffer.java:1530)

at org.gjt.sp.jedit.Buffer.setMode(Buffer.java:2025)

at org.gjt.sp.jedit.Buffer.setMode(Buffer.java:2058)

at org.gjt.sp.jedit.Buffer.finishLoading(Buffer.java:3920)

at org.gjt.sp.jedit.Buffer.access$800(Buffer.java:71)

at org.gjt.sp.jedit.Buffer$1.run(Buffer.java:280)

at org.gjt.sp.util.WorkThreadPool.doAWTRequest(WorkThreadPool.java:392)

at org.gjt.sp.util.WorkThreadPool.doAWTRequests(WorkThreadPool.java:380)

at org.gjt.sp.util.WorkThreadPool.access$200(WorkThreadPool.java:37)

at org.gjt.sp.util.WorkThreadPool$RunRequestsInAWTThread.run(WorkThreadPool.java:477)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)
Gruntspud CVS checkout fails
Submitted by michael1001 on Tuesday, 23 May, 2006 - 17:39
Hello,

I'm using jEdit and Gruntspud (Windows XP) for about on year and have installed in (a few month ago)
on several computers.

Today I installed jEdit 4.2final and Gruntspud 0.4.6-beta via the plugin manager.

I tried to checkout a CVS module with the profile :ssh2:user1@machineName:/usr/cvs.
The checkout failed with the error message:

java.lang.NoSuchMethodError: console.Console.setShell(Lconsole/Shell;)V
at gruntspud.jedit.GruntspudPlugin.getConsole(Unknown Source)
..

After uninstalling all jEdit components (also settings in directory .jedit) and
reinstallation the error still occurs.

A tip to identify the problem ( or even solve Smiling ) would be very welcome.

Regards
Michael
Dropdown box width problem with Firefox 1.5
Submitted by jlecain on Wednesday, 24 May, 2006 - 10:28
I am using Firefox 1.5 to browse the Jedit community web site and on that page:
http://community.jedit.org/?q=user/edit the width of all the dropdown boxes (Themes, Timezone, ...) appear minimized.

I can list all the items of the dropdown box but I cannot read the text entirely; in fact I can only see the 2 or 3 first letters.

The dropdown boxes appear well in IE but I don't want to use it Eye-wink

How can I fix that?
XInsert cursor positioning
Submitted by jlecain on Wednesday, 24 May, 2006 - 10:30
Hi, I use XInsert in html pages. Is it possible that after double clicking on an "insert" the cursor be automatically positioned between the begining and ending tag? This would allow me to be even more efficient by avoiding an extra click. For example when inserting a P tag it writes

and I would like to have the cursor ready to write inner text. Thank you for your reply. Julien
JTidy Plug in Options
Submitted by jlecain on Wednesday, 24 May, 2006 - 12:34
I have JTidy 1.0.1.

After going in the plug-in options for JTidy, when I mouse over a check box a text is displayed in a Help group box at the bottom.
Problem is that the text length varies, and change the height of the help group box.
Result is that the checkboxes and other options above are moved up and down making it impossible to select anything.

How can we fix quickly?
File System Browser doesn't show files
Submitted by cyrus on Wednesday, 24 May, 2006 - 13:55
Help Sad the File System Browser doesn't show any files anymore. I'm using jEdit 4.2 on Mac OSX since more than one year and the File System Browser was working, but now it seems to be broken...
When I use File >> Open menu then all files in File System Browser are shown. Unfortunately you can't dock this File Browser, just the File Browser from the Utilities menu.

Any ideas?
Marc
Opening Unicode files
Submitted by camomiletea on Wednesday, 24 May, 2006 - 23:22
When I open a UTF-8 file without a BOM (Byte Order Mark) in jEdit, I see weird squiggly characters (if you know what I mean) in place of expected Cyrillic. I didn't find a place where I could specify the encoding. I also wanted to have the ability to specify 'no BOM' on any UTF-8 files I may create in future.

I was actually able to type in some Russian, but that isn't enough. I need to be able to open Unicode files created in different applications too.

Any ideas?
Default Edit mode : defeating Fortran
Submitted by Bob Armstrong on Thursday, 25 May, 2006 - 00:08
I'm editing FORTH files which use the suffix ".f" .
The assembler coloring works well enough for my purposes
and I have set the defaults for both the global and buffer
options to default to that . But something insists on opening
.f files as FORTRAN which I haven't used in 35 years .

How do I kill that ?
jEdit 4.2 question: How to tell if a file exists on a VFS using the FTP Plugin?
Submitted by txporter on Thursday, 25 May, 2006 - 03:35
I use the FTP plugin to give me remote access to files. I am trying to write a macro to look in the directory of the file I have open in a buffer and determine if another file exists in the same directory.

On a local file system I would simply create a File instance using a path string I constructed and check to see if it exists, like this:

dirname = dir(buffer.getPath());
FQPN = dirname + "new file name";
java.io.File newFile = new java.io.File(FQPN);
if (newFile.exists()) {
//do stuff
}


If I try this when my buffer is on my remote server, newFile.exists() always returns false, regardless of whether the file actually exists or not. I think this is because dirname is something like "ftp://myuserid@myremotehost:21/path/to/new_file_name" and the normal java.io.File.exists() method does not understand URI's like this.

Any ideas on how to tell if the remote file exists or not?

I tried unconditionally opening the file and checking the length of the buffer, expecting a new file to have zero length and then I could close it immediately, but since jEdit.openFile(view, pathToFile) does not seem to be a blocking operation, trying to get the buffer length did not work:


1. aBuffer = jEdit.openFile(view,FQPN);
2. if (aBuffer.getLength() == 0) {
3. // file is new, so close it, as I only want new buffer if file exists
4. }


Could I put a VFSManager.waitForRequests() call between line 1 & 2 to wait for the FTP I/O to complete before checking the buffer length? Is this a static call? If not how to I get access to the VFSManager instance associated with my FTP connection?

Thanks!!

Tom Porter
User login
Browse archives
« May 2006 »
MoTuWeThFrSaSu
4
5
13
14
17
26
27
 
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