jEdit Community - Resources for users of the jEdit Text Editor
Archives
how to make a literal1 with same color
Submitted by urih on Wednesday, 2 February, 2011 - 14:47
Hi there,

I use perl mode and see that a line which looks like:


print "\n\nEND !!! sleep $date print \n\n";


gets a pink color inside the " (quote) chars.
inside this quotes "$date" which is a perl keyword has a different color as defined in the rest of the code.


how is it possible to tweak this behavior so everything inside the string "....." is in the same highlight?

thanks

uri
Number padding
Submitted by akovia on Wednesday, 2 February, 2011 - 19:06
Hi,
Wanted to find an easy way to pad line numbers. I am using the numbering lines macro, and wanted to know how hard it would be to add an option to add padding, and possibly an input box to format the result with brackets or other symbols. I am not a programmer but am able to do what I want each time via regex. Just looking for an easier way. Reading over the beanshell help, it looks to be a little more than I could handle without some help.

Thanks,
Ako
Search and Replace EVERY 2nd occurrence i.e. alternate occurrences
Submitted by highab on Thursday, 3 February, 2011 - 10:45
Hi, I'd like to be able to search and replace paragraph marks (\n) with tab marks (\t) for every other line down to the end of a document, effectively merging two lines into one with a tab in between.

thus turning

term1
term2
something else 1
something else 2

into

term1[tab]term2
something else 1[tab]something else 2

this is the code I have so far

SearchAndReplace.setSearchString("\\n");
SearchAndReplace.setReplaceString("\\t");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(true);
SearchAndReplace.setRegexp(true);
SearchAndReplace.replace(view);
SearchAndReplace.setSearchString("\\n");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(true);
SearchAndReplace.setRegexp(true);
SearchAndReplace.find(view);

but if I put it into a loop for textarea number of lines, it replaces ALL occurrences of \n and not every other one.... I'm stumped.

Anyone have any ideas please?
Combining/sequencing macros
Submitted by highab on Thursday, 3 February, 2011 - 10:49
I have three macros to run one after the other (or combine into one if I can)....

macro 1: populate hypersearch window with results of search for text between specific tags (and the tags)
macro 2: copy the text from the hypersearch window to a new buffer
macro 3: delete the tags and the superfluous bits

if I run them manually they do what I want. If I try to combine them or call them from a fourth macro that just calls them, they don't work right... I think they try to run at the same time rather than waiting for the previous one to finish ("node has no children". How do I get around this please?
Explore Directory for ProjectViewer (Explore_Directory.bsh v1.0 by David Koenig)
Submitted by Bargle on Saturday, 5 February, 2011 - 21:41
This macro will bring up the default platform file manager if called on a directory from the ProjectViewer plugin. As noted in the java.awt.Desktop API documentation; On the Solaris Operating System and the Linux platform, this API is dependent on Gnome libraries.
HTML 5 tags like 'header', 'nav', 'article' marked as errors, HTML 5 DOCTYPE doesn't work
Submitted by zapyon on Tuesday, 8 February, 2011 - 15:38
Hi.

I am currently playing arround with HTML 5 and CSS 3, checking out their new features, and, of course, using jEdit for this.

When I use the new DOCTYPE definition of HTML 5

<!DOCTYPE html>

jEdit marks almost everything as bad XML/HTML.

If I use the old style

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

the old tags are recognised, but the new ones introduced with HTML 5 still get marked as errors, e.g. the ones mentioned in the subject line.

How can I setup jEdit in a way that it correctly accepts all HTML 5 tags and understands that new DOCTYPE definition, too?

I am currently using these jEdit plugins:
Accents
Beauty
Common Controls
Console
ErrorList
FTP
GnuRegexp
JDiff Plugin
Jakarta Commons
Jython Interpreter
Project Viewer
PythonClient
RETest
Sessions
ShortcutDisplay
SideKick
Templates
TextTools"
VoxSpell
WhiteSpace
XML
XSLT
XercesPlugin


Regards

Andreas

PS: I had to write this post twice. The first time, I had written the tags with their < and > and simply copied the plugin list from a saved plugin set file. When sending the post, I got a message the post was rejected and when going back to the previous screen in the browser, the post was lost. NOT NICE! Please warn before sending or enable editing the original text, or even offer an option to add HTML/XML text where required, in a form that is no security hazzard.
Has anyone gotten Clearcase plugin to work with Jedit 4.3.2?
Submitted by stantonio on Tuesday, 8 February, 2011 - 20:37
Has anyone gotten Clearcase plugin to work with Jedit 4.3.2?
I was using this plugin fine with 4.2 and now it doesn't seem to work and get error at startup.
The error is :
Cannot start: java.lang.NoSuchMethodError: console.Shell.registerShell(Lconsole/Shell;)V
9:12:23 AM [main] [error] ErrorListDialog$ErrorEntry: Try updating to a newer version of the plugin.
PicASM PIC12X Edit Mode (assembly-pic12x.xml v1.0 by Brad Normand)
Submitted by bradn on Thursday, 10 February, 2011 - 00:48
Edit mode supporting PicASM syntax for PIC12X 12 bit instruction length series chips.

Specifically, this was developed with 12C508 to 12CE519 chips in mind, but is easily adaptable to other PIC microcontrollers. If anyone feels like enhancing this edit mode, go ahead and upload it!

Supports numeric literals in forms like 0xABC123, 0ABC123h, 01010101b, 42d, 01234567o.


Please remember to create an entry in the modes/catalog file or this edit mode won't show up!
How to jump to column #nnn?
Submitted by tobi_h on Monday, 14 February, 2011 - 12:41
Good day all,

I see how I can jump to a certain line in a document, but how can I jump to a column in such a line?

I have searched quite some time but found nothing...

Thx in advance for your time to comment,

greets, tobi Smiling
Some information about plugins more used
Submitted by tonimenen on Monday, 14 February, 2011 - 21:43
Hello everybody,

I think it could be very interesting to have the chance to sort the plugins by the number of downloads of each plugin, in that way it is possible to know which are the best pluggins to use by the community.
EclipseIcons download broken
Submitted by weberjn on Wednesday, 16 February, 2011 - 11:57
Hi,

when I try to download

http://plugins.jedit.org/plugins/?EclipseIcons

winrar complains that the archive ist broken:

! C:\Programme\Java\temp\EclipseIcons-1.0-6.zip: Unerwartetes Archivende

(unexpected end of archive)

XML plugin depends on this.
Missing Docking Menus on Plugin Windows?
Submitted by andrewleer on Friday, 18 February, 2011 - 04:20
http://superuser.com/questions/247038/missing-docking-options-in-jedit

Thank you,
Andrew J. Leer
ProjectViewer question
Submitted by ronw on Sunday, 20 February, 2011 - 08:55
I assume I overlooked something (new to jEdit), but when I added a new project, even after explicitly selecting it, it would not appear in the dockable window's Folder, File or Compact File listings until after I quit then restarted jEdit.

I am using jEdit 4.3.2 with ProjectViewer 3.0.1 on Windows XP SP3.
where does sidekickctags hide the ctags file?
Submitted by ronw on Wednesday, 23 February, 2011 - 17:02
I have looked many places to find the ctags generated by sidekickctags and can't find it. I would like to use those ctags files with the Tags extension since it provides some features that sidekick does not, but requires manually running ctags, so I was hoping I could just point it at the ones made by sidekickctags.
SQL Editor to highlight syntax
Submitted by hillman on Thursday, 24 February, 2011 - 02:37
Folks, I am new to JEdit and operate off of my personal Mac book (in the corporate world I use Windows and it's set of tools). I have a need to write SQL on my Mac and would like an editor to highlight syntax statements for Oracle for example. I do not see a plug-in indicating SQL, what am I missing?

Thanks.
changing actions associated with menu-bar menu items
Submitted by ronw on Saturday, 26 February, 2011 - 04:04
I figured out writing macros to run ctags on a file when it is saved or closed with pending changes. I found where I can re-assign actions to tool-bar items, and to context menu items, but I can't find any way to re-assign actions in menu-bar menu items to use my macros.

I assume I am overlooking something.
Automatic formatting for CSS
Submitted by tp200 on Saturday, 26 February, 2011 - 20:02
We work on CSS with a group of people. Some like CSS in this format:

.style{width:100px;height:300px;float:left}
.style2{width:500px;height:10px;float:right}

Others like this:

.style {
width:100px;
height:300px;
float:left;
}
.style2 {
width:500px;
height:10px;
float:right;
}

(this format should preferable even have indenting, which I can not type in this forum)

Is there a way to toggle this switch in jEdit, so that each programmer just hits a key and switches the formatting?

Thanks!
Marks are not saved properly
Submitted by fstephens on Monday, 28 February, 2011 - 17:45
I have a constant problem with the marks for a buffer being wrong.
They seem to be shifted to random lines. This does not seem to be related to adding/removing lines in the text area.
Is there a solution to this, or at least a way to easily re-mark all functions?
new guy having problems with java.awt.point
Submitted by stefandanielsen on Tuesday, 1 March, 2011 - 08:26
hey hey guyes... im verry new with jedit and is working my way forward in the programing... i hit a problem... im writing a small program and when im compile it there is no problem but when i try to run it the terminal says this :

stefan-danielsens-macbook-pro:java stefandanielsen$ java Setpoints
Exception in thread "main" java.lang.NoClassDefFoundError: Setpoints (wrong name: setPoints)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
stefan-danielsens-macbook-pro:java stefandanielsen$ java Setpoints
Exception in thread "main" java.lang.NoClassDefFoundError: Setpoints (wrong name: setPoints)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

pleas help me .... what am i doing wrong???
jEdit stuck loading "init macros" on Windows 7
Submitted by msaz87 on Tuesday, 1 March, 2011 - 21:39
Hey All,

I recently had my work laptop upgraded to 64 bit Windows 7 and now I am unable to get jEdit working again. I installed the Java environment, but installing jEdit with the Windows and Java installers both succeed until I launch the program, where it gets stuck on "init macros"

Another odd thing is I can switch users and log in as the computer admin and install it and it will open while I'm logged in there... but when I switch users back and try to open jEdit, it still fails.

Any ideas? Thanks!
User login
Browse archives
« February 2011 »
MoTuWeThFrSaSu
 
4
6
7
9
10
11
12
13
15
17
19
21
22
25
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