Plugin to work with uneditable and editable regions in the code
Submitted by
canelita on
Sunday, 7 May, 2006 - 21:14
Do we have a plugin that allows me to have uneditable and editable regions in the code?
I need to lock some region in the code, so users cannot touch some code I have already generated.
Cheers
uneditable and editable regions in the code
Submitted by
canelita on
Monday, 8 May, 2006 - 12:48
I am not an expert with Jedit, so I dont know how basic this question is.
Do we have a plugin/feature that allows me to have uneditable and editable regions in the code?
I need to lock some region in the code, so users cannot touch some code I have already generated.
LilyTool in jEdit - unable to run lilypond
Submitted by
zrlaszlo on
Tuesday, 9 May, 2006 - 15:46
Hi.
I have just tried out jEdit with the LilyTool plugin. It is working very well.
However, my problem is that when I try to run lilypond from inside jEdit, I get the following error:
java.lang.NoSuchMethodError: console.Console.setShell(Ljava/lang/String;)V
at lilytool.LilyToolPlugin.runCommand(LilyToolPlugin.java:409)
at lilytool.LilyToolPlugin.runCommandOnBuffer(LilyToolPlugin.java:438)
at lilytool.LilyToolPlugin.runCommandOnBuffer(LilyToolPlugin.java:430)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.BSHAssignment.eval(BSHAssignment.java:77)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BSHBlock.eval(BSHBlock.java:46)
at bsh.BSHIfStatement.eval(BSHIfStatement.java:48)
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: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.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.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)
I am quite new to jEdit, so I could not figure out, what is wrong. Besides, I apologize for writing - there might have been someone else asking this question. I did a few searches but unfortunately I do not have the time crawl through the entire forum.
Thank you a lot for your help.
Jedit showing . characters
In JEdit,
The editor is showing a "." instead of EOL character and a ":" whenever the word wrapping happens. Although sometimes desirable i want to TURN THIS feature off. Is there anyway i can do this?
I tried playing with the global options, buffer options and the forums but cudnt find something though.
Thanks,
Kannan
kannan.ekanath@gmail.com
Problem configuring jEdit
Submitted by
ionial on
Thursday, 11 May, 2006 - 00:17
Hi!
I've installed jEdit with few plugins and trying to use JExplorer.
I've ProjectViewer working OK , created new project with bunch of java files.
Then I wanted to see its model in JExplorer - but I have a feeling that it just doesn't parse the
files (the icon never changes).
What should I do to get JExplorer working?
Sincerely, Nick
Sort Lines (editplus style sort) (Sort.bsh v1.1 by Yuan Wang)
Submitted by
p8er on
Thursday, 11 May, 2006 - 07:35
Sort selected lines or whole buffer (when nothing is selected).
This is just similar to the sort function in Editplus 2.
Features:
- Order -
Either ascending order or descending order.
- Starting column -
Enter a column number from which the sorting operation begins. The text before this column number will be sorted when string after the column is the same. Enter an integer value great than or equals to 1.
- Case sensitive -
The case-sensitive comparison option.
- Remove duplicates -
Remove any duplicated line after the sorting option.
Sort Lines (editplus style sort)
Submitted by
p8er on
Thursday, 11 May, 2006 - 08:03
I wrote a macro to sort lines of selection or whole buffer.
After I finished it I found there is another sort lines macro here. (Oh! why I don't search it before write this one. )
But my macro is more powerful than the one exist, though the dialog of that one is more pretty.
------------------------------------
Here is the description of my macro, just like the sort tool in editplus 2.
Sort selected lines or whole buffer (when nothing is selected).
This is just similar to the sort function in Editplus 2.
Features:
- Order -
Either ascending order or descending order.
- Starting column -
Enter a column number from which the sorting operation begins. The text before this column number will be sorted when string after the column is the same. Enter an integer value great than or equals to 1.
- Case sensitive -
The case-sensitive comparison option.
- Remove duplicates -
Remove any duplicated line after the sorting option.
You can download it here ->
download.
Or view the download page here ->
download page.
Or you like
the old one created by Pascal Dal Farra.
AntHelper - jbrowse.JBrowsePlugin not installed
Submitted by
gomez_adams on
Thursday, 11 May, 2006 - 13:39
I have a problem with the AntHelper plugin.
When starting jedit I see the following message.
AntHelper.jar
Requires version 1.4.4 or later of jbrowse.JBrowsePlugin, but jbrowse.JBrowsePlugin is not installed.
I have the jbrowse plugin and AntHelper installed from the update centre.
I am using java 1.5.0_06 and JEdit 4.2
Does anyone else have this problem?
I have tried installing multiple times and can reproduce this everytime. I have tried deleting my .jedit directory and reinstalling the plugins to make sure that there is no broken config or incorrect jar files, but this has not helped.
notification when dockable is displayed?
Submitted by
achim on
Friday, 12 May, 2006 - 09:27
Hallo,
I'd like to build a plugin, which is _only_ displayed as a dockable when
in the editor are special kinds of files open. For example files with
the extension '.xml'.
For the first call of my plugin I managed the discribed behavior by the
following code in my 'dockables.xml':
if (buffer.isUntitled() || (! (buffer.getName().endsWith("xml")))) {
Macros.message(view, "JaserReports-Plugin is only supporting files
with the extension '.xml'");
return;
}
else {
return new de.infokomGT.jjr.JasperReportsView(view, position);
}
But for all following calls to open the plugin, this code has no effect.
So I tried to be informed by the MessageBus, but it seams there is no
message send, when the DockableWindowManager opens or closes a window.
Any help is welcome.
Achim
"Keep Dialog" (check box) in Search & Replace: Settings
Submitted by
ELockhart on
Friday, 12 May, 2006 - 13:27
I have tried to find out what the "Keep Dialog" check box refers to in the JEdit "Help Files" but can not find any reference to it. Would someone please point me to the right spot (in the "Help Files") or explain what it means/how it works?
Thanks,
Eric
Auto save when jEdit window looses focus
Submitted by
stellari on
Friday, 12 May, 2006 - 16:55
I just download and installed jEdit for the first time and I'm still not completely used to it.
I'm looking for a way to auto save all the open files/buffers once the program looses focus.
I find it very handy when I modify several dependent scripts and then move to a different program to run it.
This is a feature I got used to have in MultiEdit.
I'm sure there must be a way to do it.
Thanks,
Franco
Auto save when jEdit window looses focus
Submitted by
stellari on
Friday, 12 May, 2006 - 18:02
This is a duplicate post... I mistakenly submitted the first one to the wrong forum... my fault.
I just download and installed jEdit for the first time and I'm still not completely used to it.
I'm looking for a way to auto save all the open files/buffers once the program looses focus.
I find it very handy when I modify several dependent scripts and then move to a different program to run it.
This is a feature I got used to have in MultiEdit.
I'm sure there must be a way to do it.
Thanks,
Franco
Model/Controller Switcher for RoR developers (toggle_model_controller.bsh v0.1 by vovan)
Submitted by
vovan on
Monday, 15 May, 2006 - 10:40
The macros opens a Controller file in the current buffer if you're editing a Model and vice versa.
Two Stage Save always asks for confirmation
Submitted by
scaRFhogg on
Tuesday, 16 May, 2006 - 16:01
I just installed pre4 and FTP plugin v 0.7.7
Now whenever I save a file to a FTP server a dialog is shown telling me the file is readonly and that it will be saved with two stage save. This is very annoying. The file is clearly *not* readonly, it is r/w for the ftp user. Any ideas why that happens?
unable to download plugins on newly installed jedit
Submitted by
raw on
Tuesday, 16 May, 2006 - 17:32
I recently installed jEdit 4.2 final on my Kubuntu 6.04 (Dapper Drake) system, with java version 1.4.2-02 installed.
The first thing I wanted to do was to enable some plugins, but when trying to install them through plugin manager (any plugin, multiple number of tries), I get a message box saying "An I/O error occurred (Connection refused)" and the messages below in the console window in which I started jEdit.
My system is connected to the internet through an router using NAT, with no restrictions, firewalls or proxies. I have no problems whatsover with my internet connection other than this.
Any ideas?
Messages in Console Window:
[error] Roster$Install: java.net.ConnectException: Connection refused
[error] Roster$Install: at java.net.PlainSocketImpl.socketConnect(Native Method)
[error] Roster$Install: at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
[error] Roster$Install: at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
[error] Roster$Install: at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
[error] Roster$Install: at java.net.Socket.connect(Socket.java:452)
[error] Roster$Install: at java.net.Socket.connect(Socket.java:402)
[error] Roster$Install: at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
[error] Roster$Install: at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
[error] Roster$Install: at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
[error] Roster$Install: at sun.net.www.http.HttpClient.(HttpClient.java:306)
[error] Roster$Install: at sun.net.www.http.HttpClient.(HttpClient.java:267)
[error] Roster$Install: at sun.net.www.http.HttpClient.New(HttpClient.java:339)
[error] Roster$Install: at sun.net.www.http.HttpClient.New(HttpClient.java:320)
[error] Roster$Install: at sun.net.www.http.HttpClient.New(HttpClient.java:315)
[error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:521)
[error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:498)
[error] Roster$Install: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:626)
[error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.Roster$Install.download(Roster.java:417)
[error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.Roster$Install.runInWorkThread(Roster.java:314)
[error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.Roster.performOperationsInWorkThread(Roster.java:82)
[error] Roster$Install: at org.gjt.sp.jedit.pluginmgr.PluginManagerProgress$RosterThread.run(PluginManagerProgress.java:181)
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

).
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.
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