jEdit Community - Resources for users of the jEdit Text Editor
better c syntax highlighting?
Submitted by kimjim on Wednesday, 18 August, 2004 - 22:12
Hello,
I just started to learn a bit C. Is there a mode file, plugin or something that would give me better C syntax highlighting in jEdit? I use jEdit everyday, mostly for html stuff, and I would like to use it for my C lessons too, but I find the default C highlighting a bit disapointing. For example, function names are not highlighted at all, although there is a setting for functions in the syntax highlighting options. I would love to have different syntax highlighting for function names and variable names, like in SubEthaEdit, if anybody knows this editor.
Sorry if this is a FAQ. I tried to use the search form to find an answer, but it doesn't use search strings shorter than 2 chars, so I can't search for something like "c mode".
Thanks, kimjim
Problem trying to Exit JEdit
Submitted by yogesh_4u on Tuesday, 17 August, 2004 - 14:04
I have getting an un expected error trying to exit jedit. Below is the Stack Trace for the error.

java.lang.NegativeArraySizeException

	at org.gjt.sp.jedit.jEdit.getBuffers(jEdit.java:1947)

	at org.gjt.sp.jedit.PerspectiveManager.savePerspective(PerspectiveManager.java:147)

	at org.gjt.sp.jedit.jEdit.exit(jEdit.java:2470)

	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:324)

	at bsh.Reflect.invokeOnMethod(Reflect.java:149)

	at bsh.Reflect.invokeStaticMethod(Reflect.java:100)

	at bsh.Name.invokeMethod(Name.java:872)

	at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)

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

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

	at bsh.BSHBlock.evalBlock(BSHBlock.java:130)

	at bsh.BSHBlock.eval(BSHBlock.java:80)

	at bsh.BshMethod.invokeImpl(BshMethod.java:349)

	at bsh.BshMethod.invoke(BshMethod.java:246)

	at bsh.BshMethod.invoke(BshMethod.java:171)

	at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)

	at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)

	at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)

	at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2907)

	at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)

	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)

	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)

	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)

	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)

	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)

	at java.awt.Component.processMouseEvent(Component.java:5100)

	at java.awt.Component.processEvent(Component.java:4897)

	at java.awt.Container.processEvent(Container.java:1569)

	at java.awt.Component.dispatchEventImpl(Component.java:3615)

	at java.awt.Container.dispatchEventImpl(Container.java:1627)

	at java.awt.Component.dispatchEvent(Component.java:3477)

	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)

	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)

	at java.awt.Container.dispatchEventImpl(Container.java:1613)

	at java.awt.Window.dispatchEventImpl(Window.java:1606)

	at java.awt.Component.dispatchEvent(Component.java:3477)

	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Problem trying to Exit JEdit
Submitted by yogesh_4u on Tuesday, 17 August, 2004 - 14:01
I have getting an un expected error trying to exit jedit. Below is the Stack Trace for the error.

java.lang.NegativeArraySizeException

	at org.gjt.sp.jedit.jEdit.getBuffers(jEdit.java:1947)

	at org.gjt.sp.jedit.PerspectiveManager.savePerspective(PerspectiveManager.java:147)

	at org.gjt.sp.jedit.jEdit.exit(jEdit.java:2470)

	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:324)

	at bsh.Reflect.invokeOnMethod(Reflect.java:149)

	at bsh.Reflect.invokeStaticMethod(Reflect.java:100)

	at bsh.Name.invokeMethod(Name.java:872)

	at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)

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

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

	at bsh.BSHBlock.evalBlock(BSHBlock.java:130)

	at bsh.BSHBlock.eval(BSHBlock.java:80)

	at bsh.BshMethod.invokeImpl(BshMethod.java:349)

	at bsh.BshMethod.invoke(BshMethod.java:246)

	at bsh.BshMethod.invoke(BshMethod.java:171)

	at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)

	at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)

	at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)

	at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2907)

	at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)

	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)

	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)

	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)

	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)

	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)

	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)

	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)

	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)

	at java.awt.Component.processMouseEvent(Component.java:5100)

	at java.awt.Component.processEvent(Component.java:4897)

	at java.awt.Container.processEvent(Container.java:1569)

	at java.awt.Component.dispatchEventImpl(Component.java:3615)

	at java.awt.Container.dispatchEventImpl(Container.java:1627)

	at java.awt.Component.dispatchEvent(Component.java:3477)

	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)

	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)

	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)

	at java.awt.Container.dispatchEventImpl(Container.java:1613)

	at java.awt.Window.dispatchEventImpl(Window.java:1606)

	at java.awt.Component.dispatchEvent(Component.java:3477)

	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)

	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Project Viewer problems on 4.2pre15
Submitted by Anonymous on Friday, 13 August, 2004 - 21:42
Hi, I'm new to jedit, but thanks to the abundant documentation have successfully installed many plugins. However, "Project Viewer 2.0.4" does not seem to work for me on jedit 4.2pre15 and Redhat 9.0. The symptoms are that I can create projects (files are created in ~/.jedit/projectviewer), but don't seem to able to do anything with the projects. I don't see the Add/Edit icon on the toolbar that the documentation describes, nor do I see any method to load files into projects from jedit, nor is there a window showing the project structure. Has anyone gotten PV to work on the following system?

Here is the relevant activity log info:
[message] Log: java.version=1.4.2_03
[message] Log: java.vm.version=1.4.2_03-b02
[message] Log: java.runtime.version=1.4.2_03-b02
[message] Log: java.vendor=Sun Microsystems Inc.
[message] Log: java.compiler=null
[message] Log: os.name=Linux
[message] Log: os.version=2.4.20-8
[message] Log: os.arch=i386
[message] Log: user.home=/home/jhaefner
[message] Log: java.home=/usr/java/j2re1.4.2_03
[message] Log: java.class.path=/usr/local/share/jedit/4.2pre15/jedit.jar
[notice] jEdit: jEdit version 4.2pre15
[message] jEdit: Settings directory is /home/jhaefner/.jedit
[message] jEdit: jEdit home directory is /usr/local/share/jedit/4.2pre15

If you have gotten this work, can you describe what you did/do to make PV work after it is loaded? Thanks in advance

Jim
Converting Smart Quotes from Word HTML to HTML entities in macros
Submitted by Anonymous on Friday, 13 August, 2004 - 19:02
I'm very pleased with jEdit (4.1)... I've been using macros to clean up the "filtered" html that MSWord 2003 generates for a project I'm working on. One problem that I noticed, I can search and replace the weird "smart quotes" and elipses (sp?) that Word uses with HTML entities using the Search and replace dialogue box, but whenever I try to record it as a macro, it stops working. A typical macro, once recorded, looks like this:

SearchAndReplace.setSearchString("“");
SearchAndReplace.setReplaceString("“");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.replaceAll(view);

Any ideas as to what I can do to get it to work as a macro?
Tag completion
Submitted by jnix on Friday, 13 August, 2004 - 18:24
Specifically, I'm looking to get jedit to behave like ColdFusion Studio, but I think the general theory applies to anything. How do I enhance the list of tags that pops up when I start typing "<"? currently I just get html tags, but I want the CFML tags to appear as well. Thanks.
PHP and heredoc
Submitted by mxc on Thursday, 12 August, 2004 - 20:47
Is there a way to get jEdit to syntax highlight a heredoc string based on the delimiter?

For example, if I have a heredoc comment such as this

$table = <<<HTML
<table>
....
</table>
HTML;

can I get jEdit to see the HTML delimiters and then treat the content in between as HTML and perform syntax highlighting accordingly?
cursor beyond EOL
Submitted by Anonymous on Thursday, 12 August, 2004 - 16:56
Is it posible to let the cursor go beyond EOL just by pressing the arrows?
Launching Jedit from JDistro
Submitted by turiot on Thursday, 12 August, 2004 - 08:55
What it the procedure to launch Jedit within JDistro.
I intent using JDistro in order to save memory.
Indenting comment lines in Perl
Submitted by Peacock on Thursday, 12 August, 2004 - 07:59
When using =pod ... =cut to comment out Perl code, and subsequently using Ctrl-I to automatically indent the Perl code, the =pod and =cut tags are placed in the same column as the start column of the next line of code. They should be placed at the first column of the line though to be interpreted correctly by the Perl interpreter.
How to change file properties?
Submitted by ccapeng on Wednesday, 11 August, 2004 - 21:28
I used to have ultraedit. To edit a read only file, I just open file browser (window file dialog box) and change file properties.
Any simliar feature in jEdit?
Console Plugin: Getting Commando files to save variables from last use
Submitted by JuliusB on Wednesday, 11 August, 2004 - 15:16
I'm tring to make a commando file for compiling individual C/C++ files.

It should take in as arguments: which compiler to use, Include switches, Lib switches and other compiler switches.

Is it somehow possible to save these variables so that you don't need to write them every time?

On a side note: Is it possible to make the Eval attribute excute an arbitrary beanshell script?

Thanks In Advance,
Julius

Btw, JEdit Rocks!!!! Smiling
Displaying tab and space characters
Submitted by Anonymous on Wednesday, 11 August, 2004 - 01:00
How do I do that in jEdit? Puzzled I miss that feature from EditPlus.

If it can be displayed, how can I change the symbol used for displaying these special characters? I don't like how the line-feed looks like a period.
How to copy hyersearch result?
Submitted by ccapeng on Tuesday, 10 August, 2004 - 16:31
The hypersearch result is in the tree list.
Is there a way I can copy to the whole content to clipboard?
JSwat plugin not visible
Submitted by lauviss on Tuesday, 10 August, 2004 - 12:02
I'm using jEdit 4.1 final on Windows XP Professional. I've installed the plugin JSwat 1.5.4 with jEdit. My Problem: After restart of jEdit I cannot find the plugin. Neither with the plugin manager nor with searching through the options. May you give me a hint, what's going wrong?

Thanks in advance,
lauviss

P.S.: I've searched the forum and couldn't find anything about such a problem. If this is the wrong forum, sorry.
javadoc comments
Submitted by sleek on Tuesday, 10 August, 2004 - 01:12
When I use vim, I can use a .vimrc to specify that when I start comments and hit enter, the next line will continue the comment characters. For example:
/* blah blah 
 * the asterick is entered automatically
 */

// comment 
// line 2 where // is entered automatically when ENTER is hit

/** 
 * Javadoc style comment does the same thing
 */
Keyboard shortcut for column ("vertical") selection mode?
Submitted by Anonymous on Monday, 9 August, 2004 - 20:27
Hi,
is there a keyboard shortcut to activate column (or vertical) selection mode without having use CTRL-LeftMouse Drag? I miss something like the ALT-C combination of UltraEdit (which I have at work), this key switches the behavior of SHIFT-Cursor-Key between normal (line) and column selection.
If not, is there a way to add it?
Thanks!
+L
Antialiasing of fonts... where?
Submitted by DanF on Monday, 9 August, 2004 - 18:11
I've checked, double checked, and googled everywhere and haven't found any options to enable rendering of anti-aliased fonts in jEdit. The AntiAlias plugin is deprecated, so I figured "hey, that means antialiasing is either not supported or there must be an option here somewhere...".

Can't find it. I'm feeling stupid. C'mon you guys, where is it? Sad

I'm a PHP coder and I'm loving jEdit btw. Definitely not love at first glance, I saw jEdit last year and ran away screaming. Totally different impression now, plugins are awesome! Smiling

(Specs: Windows XP SP1, J2RE v1.4.2, jEdit 4.2pre15)
HTML/CSS Preview in Browser
Submitted by backspaces on Sunday, 8 August, 2004 - 22:25
I suspect I'm missing something, but I haven't figured out how to view my current (x)html/css page in a browser (Safari, Firefox, ...) while using the XML plugin.

I'm using Mac OS X, so all I really need to be able to do is call the shell command "open" on the current buffer.

Is there a way to do this? .. possibly a plugin?

Owen
Change Editing Mode
Submitted by Anonymous on Sunday, 8 August, 2004 - 13:04
On the webpage i am working on right now there are HTML template with .tpl extension. It seems hovever there is a seperate editing mode for .tpl, so when i edit one of the templates the features of the XML plugin are not available.
So my question is if it is possible to have the HTML editing mode enabled for .tpl files automatically.
User login
Browse archives
« May 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
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   83283
Context Free Art (*.cfdg)   0.31   46056
BBEdit scheme   1.0   18596
JBuilder scheme   .001   18496
ColdFusion scheme   1.0   18025
R Edit Mode - extensive version   0.1   17474
Advanced HTML edit mode   1.0   16207
Matlab Edit Mode   1.0   16069
jEdit XP icons   1.0   15230
XP icons for jEdit   1.1   14294