jEdit Community - Resources for users of the jEdit Text Editor
Archives
external editor parameters of code composer
Submitted by bseiz on Wednesday, 23 September, 2009 - 07:19
Hello,

i want to use jEdit as an external editor of Code Composer 3.1. I have tried a lot of things but nothing works. Especially i want to set up a line parameter which tells jEdit to go to a specific line.

Here you will find a screenshot of the configuration dialog of Code Composer for external editors:
http://www.bilder-space.de/show.php?file=23.09VZn2eHSmjrKEQIU.JPG

Can anybody help please?
Create new file from template
Submitted by rafael.felix on Wednesday, 23 September, 2009 - 22:27
First of all, i'd like to thank the jedit team for letting us use this fantastic editor. It is by far the best programming editor i've ever worked with.

But now here is the question: is there any way to create a file from a template? (Like those in Microsoft Word?)

I work with multiple php frameworks and it really sucks to have to create new controllers, models and views from scratch everytime.

thanks!
cannot download jEdit
Submitted by Pollyanna on Thursday, 24 September, 2009 - 15:32
When I try to download jEdit, I always get a message saying, "The "jedit-devel/4.3pre17/Packages.bz2" file could not be found or is not available. Please select another file."

I get this message regardless of what I try to download.

What am I doing wrong?
Cucumber syntax highlighting for jEdit (cucumber.xml v0.1 by Gabriel Medina)
Submitted by rha7dotcom on Thursday, 24 September, 2009 - 22:50
Cucumber syntax highlighting for jEdit

Allows you to highlight .feature (cucumber : http://cuckes.info/) files in jEdit.

Full instructions at:

red[:shades] - Cucumber syntax highlighting for jEdit


Suggested catalog mode line:

<MODE NAME="cucumber" FILE="cucumber.xml" FILE_NAME_GLOB="*.feature" />


corpus for computational linguisitcs
Submitted by hamyfox on Sunday, 27 September, 2009 - 20:49
Hi,

I recently discovered Jedit and started working with Jedit macros.
This site resources have been very helpful in assisting me with writing
a search and replace macro for HTML documents for corpus purposes.
I would like to clean HTML files and save them into txt files.
I am familiar with classes and methods from C++ but not quite
with Beanshell coding. Are there any references for Beanshell codes and methods ?
I would appreciate any help, in form of macro code for the following:
1- macro to delete first x lines of a document
2- macro for keeping only contents of title, paragraph or body of an HTML document

Any help in this matter through code or references would be greatly appreciated. Thanks.
newbie, BeanShell error, emacs emulation, WinXP
Submitted by gap on Monday, 28 September, 2009 - 22:49
I'm trying out jEdit as a possible 21st Century replacement for XEmacs to write python code. By now my fingers are hard-wired with Emacs keybindings, so I installed Brian's Emacs Emulation Package on two different WinXP machines. On one it works just fine. On the other I get a BeanShell error when jEdit starts (text below). I've reinstalled jEdit and the Emacs Package, updated java, and rebooted, but I still get this error. I'm utterly java illiterate, but it does look like it's failing on the very first line of emacs_bindings.bsh, so I suspect some installation problem. My java is:
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)

Please help ?!
-gap

------------------------------------------------------------
Sourced file: C:\Documents and Settings\Gary\.jedit\startup\emacs_bindings.bsh : Class: bsh.ClassIdentifier not found in namespace : at Line: 26 : in file: print : bsh .ClassIdentifier

Called from method: print : at Line: 8 : in file: C:\Documents and Settings\Gary\.jedit\startup\emacs_bindings.bsh : print ( "in emacs_bindings.bsh" )
at org.gjt.sp.jedit.bsh.BSHAmbiguousName.toClass(BSHAmbiguousName.java:74)
at org.gjt.sp.jedit.bsh.BSHType.getType(BSHType.java:154)
at org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:63)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.BSHUnaryExpression.eval(BSHUnaryExpression.java:58)
at org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:123)
at org.gjt.sp.jedit.bsh.BSHBinaryExpression.eval(BSHBinaryExpression.java:52)
at org.gjt.sp.jedit.bsh.BSHIfStatement.evaluateCondition(BSHIfStatement.java:63)
at org.gjt.sp.jedit.bsh.BSHIfStatement.eval(BSHIfStatement.java:46)
at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80)
at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186)
at org.gjt.sp.jedit.bsh.Name.invokeLocalMethod(Name.java:955)
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:801)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:331)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:279)
at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:205)
at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1030)
at org.gjt.sp.jedit.jEdit.runStartupScripts(jEdit.java:3704)
at org.gjt.sp.jedit.jEdit.main(jEdit.java:511)
Options Not Visible
Submitted by ptoole on Wednesday, 30 September, 2009 - 20:59
I am unable to see the "Example" option show up under the Plugin Options. Has anyone seen this behavior before?

Running jedit in debug mode returns NO errors, I get no messages back. I've tried all permutations including options-group in my properties file. Other plugins appear to be working fine.


Here's my proprty file:


# Properties file for example plugin

# application activator (4.2)
plugin.examplePlugin.activate=defer

# general plugin information
plugin.com.example.fe.jedit.ExamplePlugin.name=example
plugin.com.example.fe.jedit.ExamplePlugin.description=Tools used for example Development
plugin.com.example.fe.jedit.ExamplePlugin.longdescription=description.html
plugin.com.example.fe.jedit.ExamplePlugin.author=Patrick Toole
plugin.com.example.fe.jedit.ExamplePlugin.version=0.2
plugin.com.example.fe.jedit.ExamplePlugin.docs=index.html
plugin.com.example.fe.jedit.ExamplePlugin.depend.0=jedit 04.02.09.00
plugin.com.example.fe.jedit.ExamplePlugin.depend.1=jdk 1.3

# window title
example.title=Explain Plan


# labels for dockables.xml
ExplainPlanImage.title=Explain Image
ExplainPlanImage.label=Explain Image Window
ExplainPlanText.title=Explain Text
ExplainPlanText.label=Explain Text Window
QueryTableMetrics.title=Table Metrics
QueryTableMetrics.label=Table Metrics Window
QueryTableColumns.title=Table Columns
QueryTableColumns.label=Table Columns Window
QueryProjections.title=Projection Definitions
QueryProjections.label=Projection Definitions Window



# application menu items (4.2)
plugin.com.example.fe.jedit.examplePlugin.menu=example.explain-selection
# labels for actions
example.explain-selection.label=Explain Selection

# option pane
plugin.com.example.fe.jedit.ExamplePlugin.option-pane=example-sql
options.example-sql.label=Example
options.example-sql.code=new com.example.fe.jedit.ExampleOptionPane();
Custom File Extensions: Enabling syntax highlighting and abbreviations for
Submitted by navin on Sunday, 4 October, 2009 - 18:34
Hello all,
Please forgive me for this newbie question. I have been using jEdit successfully for a while now to create PHP scripts. I have recently started using the CakePHP framework and intend to keep using jEdit as my primary editor. However, CakePHP requires PHP/HTML code in certain files that don't have names that end in the familiar .php extension. I'd like to enable PHP syntax highlighting and abbreviation support for such files. My question is: How do I get jEdit to use PHP mode for files that don't have names that end with the .php extension?

Thanks,
Navin
Documentation for syntax highlighting
Submitted by robw on Friday, 9 October, 2009 - 23:03
Newbie here!

I've looked in all the docs can find but can't find anything about how to create a syntaxt highlighting file. Anyone knkw where I can get instructions?

Thanks.

Rob Wheeler (UK)
after installing red dots and blue line in editore
Submitted by Dshah on Saturday, 10 October, 2009 - 17:19
Hi i am new to jedit and just installed jedit version 4.3 on windows 7. now i have three problems.

1. there are red dots on every line
2. there is one blue horizontal line on middle of the page.
3. i installed the FTP plugin but its not connecting to my server host.

Thanks for any help
Best Wishes
Trouble building jEdit in Eclipse
Submitted by kenmcfa on Saturday, 10 October, 2009 - 23:32
Hi, I'm trying to built the latest trunk of jEdit in Eclipse. I checked it out from the sourceforge SVN, and then imported it as a new project from the ant buildfile. However doing so gives me loads of problems. A lot of them are complaining that various imports cannot be resolved. I *can* fix these by importing the appropriate .jar files on the build path. This fixes those errors, but I also get package related errors such as "The declared package "macosx" does not match the expected package "jars.MacOSX.macosx"" I could fix these by replacing the package declarations, but surely this isn't necessary? Is it possible that I've set something up wrong?

Any help would be much appreciated.
jedit doesn't work with root
Submitted by cerkauskas on Wednesday, 14 October, 2009 - 17:50
when i'm trying to start jedit with root, i getting error, but when starting with simple user it works! error here: [root@tomas tomas]# jedit No protocol specified [error] main: Exception in thread "main" [error] main: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. [error] main: at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) [error] main: at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52) [error] main: at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155) [error] main: at java.security.AccessController.doPrivileged(Native Method) [error] main: at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:131) [error] main: at java.lang.Class.forName0(Native Method) [error] main: at java.lang.Class.forName(Class.java:169) [error] main: at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) [error] main: at javax.swing.RepaintManager.(RepaintManager.java:179) [error] main: at javax.swing.JComponent.repaint(JComponent.java:4734) [error] main: at java.awt.Component.repaint(Component.java:3081) [error] main: at javax.swing.JComponent.setBackground(JComponent.java:2705) [error] main: at org.gjt.sp.jedit.gui.SplashScreen.(SplashScreen.java:35) [error] main: at org.gjt.sp.jedit.GUIUtilities.showSplashScreen(GUIUtilities.java:1519) [error] main: at org.gjt.sp.jedit.jEdit.main(jEdit.java:299) can anybody help me? Arch Linux
Commando File for Context Free (cfdg.xml v0.17 by monkstone)
Submitted by monkstone on Wednesday, 21 October, 2009 - 16:17
My first commando file, allows me to run cfdg from within jedit. You will need to tune it for your system, available options are crop size, choice of svg or png output. Default output filename is as the input rule, with appropriate extension (ie "png" or svg" depending on chosen output format) is added when run the command (ie hit OK button). Updated version as of 10 July 2012, now includes -Q option for quicktime movies output, depends on release version of CF3 with compiled in ffmpeg support on linux.
formatting paragraphs within comments
Submitted by mab2001 on Wednesday, 21 October, 2009 - 16:27
Hi,

I use "Format Paragraph" along with "Rectangular Selection" to format text in a comment block (where there is "* " to the left of every line). The problem I have is that this always formats the paragraph to be 80 characters wide regardless of the left column of my selection. Is there a way to get Format Paragraph in this instance to use column 80 minus the selection's left column as the paragraph width?

Alternately, is there a plugin to aid in writing and formatting ASDoc or JavaDoc comments?

Thanks,
Mike
JavaSideKick Code Completion NullPointerException
Submitted by leeys on Thursday, 22 October, 2009 - 03:22
Hi, I am getting this when I trigger code completion with JavaSideKick. Can anyone help?

I installed JavaSideKick via Plugin Manager and have configured the classpath for the project.

Thanks.

java.lang.NullPointerException
at sidekick.java.util.Locator.getClasses(Locator.java:357)
at sidekick.java.util.Locator.getProjectClasses(Locator.java:299)
at sidekick.java.JavaCompletionFinder.getPossibleQualifiedCompletions(JavaCompletionFinder.java:230)
at sidekick.java.JavaCompletionFinder.getPossibleCompletions(JavaCompletionFinder.java:169)
at sidekick.java.JavaCompletionFinder.complete(JavaCompletionFinder.java:68)
at sidekick.java.JavaParser.complete(JavaParser.java:640)
at sidekick.SideKickActions.complete(SideKickActions.java:114)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.gjt.sp.jedit.bsh.Reflect.invokeMethod(Reflect.java:134)
at org.gjt.sp.jedit.bsh.Reflect.invokeStaticMethod(Reflect.java:98)
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:871)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80)
at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362)
at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258
Jump to beginning of current function (JumpToBeginningOfFunction.bsh v0.1 by Shlomy Reinstein)
Submitted by shlomy on Thursday, 22 October, 2009 - 14:37
Using a SideKick tree where the functions in the current buffer are shown, jumps to the beginning of the function where the caret is located by finding the first '{' in the current asset.
Jump to end of current function (JumpToEndOfFunction.bsh v0.1 by Shlomy Reinstein)
Submitted by shlomy on Thursday, 22 October, 2009 - 14:38
Using a SideKick tree where the functions in the current buffer are shown, jumps to the end of the function where the caret is located by finding the last '}' in the current asset.
Cant get hyperlink plugin to work
Submitted by robw on Friday, 23 October, 2009 - 21:09
I have installed the hyperlink plugin and assumed it would work the way it does in every other editor I've used. You can click on the link while holding the CTRL key down and I assumed that it would open the page in a brower. However, it just grabs the source code of the page and opens it the the editor. Very odd. Am I configuring it incorrectly? I cant find any documentation for it. Perhaps the is an alternatiev way of rendering hyperlinks as hot spots. Assistance appreciated.

RobW
Search asset exact (SearchAssetExact.bsh v0.1 by Shlomy Reinstein)
Submitted by shlomy on Saturday, 24 October, 2009 - 14:32
Searches the current SideKick asset (e.g. C function) for the selected word (exact match).
File Extensions and Modes
Submitted by niklasfi on Sunday, 25 October, 2009 - 09:31
Is there a way to tell jEdit to always open files of a certain file Extension in a certain mode? I am doing some work in Maple and I would like all ".maple" files to be opened in the Maple-mode. I do not think any file extensions have been registered with maple, as typical Maple files from the XMaple editor (.mw, mws) are not plain text files. Though it is possible to pass plain text files the maple compiler. Anyways. I am looking forward to your answers.
Cheers,
Niklas
User login
Browse archives
« September 2009 »
MoTuWeThFrSaSu
 
1
2
3
4
6
7
8
9
12
13
15
16
17
19
20
25
26
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   97301
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299