Syntax highlighting for Rails 2 files
Submitted by
mamboze on
Saturday, 10 May, 2008 - 04:04
Hi,
I'm editing a Rails 2.0.2 app and I find that files with the .erb extension do not show any syntax highlighting. I'm using jEdit 4.3 pre10 with Java 1.6.0_03 on a Ubuntu Gutsy box.
What should I do to get some highlighting up and running?
Thnx in advance
Roy
My header files are always treated as Objective-C code... :-(
Submitted by
ernest on
Thursday, 8 May, 2008 - 22:19
How do I get jEdit to treat my headers as C++ code rather than Objective-C code? I know I can go into the buffer properties and change it, but is there some way I can make this a permanent (or project wide) association?
Thanks,
Ernest
Multiple docked plugins in same area
Submitted by
ernest on
Monday, 5 May, 2008 - 15:51
Is there a way to dock more than one plugin in an area (such as at the bottom of the screen) and have them all be active? To be more specific, I'd like to be able to have the Console and the Task List displaying at the same time in the bottom dock region. is this possible? If not, is it planned for a future release?
Thanks,
Ernest
running 2 copies of jEdit
Submitted by
mamboze on
Sunday, 4 May, 2008 - 01:14
Hi,
Is it possible to run 2 copies of jEdit simultaneously. When I try to launch a second copy the start sequence seems to be aborted after a few seconds
thnx for any help
Mixed Mode Highlighting
Submitted by
WarrickF on
Thursday, 1 May, 2008 - 17:55
Hi All,
Is it possible to somehow have mixed mode highlighting.
We've added a custom mode for our own language, but when JavaScript it mixed into the page it does not get highlighted correctly.
What's the best way to approach this ?
Thanks
Warrick
Template Accelerators - Keywords beginning with @ and other special chars
Submitted by
WarrickF on
Thursday, 1 May, 2008 - 13:39
Hi all,
I'm having a problem setting up Keywords in Accelerator that begin with "@" and other special chars like "<".
If I setup an accelerator called Test - all is good, if I name my accelerator @Test it does not work. The help says ....
The plugin searches for the keyword from the current caret position in the textarea backwards to first whitespace character.
However is seem like it only searches backward for char 1..9,a..z,A..Z
Is this a bug or is there some workaround like escaping the char somehow (which I've tried)?
Thanks
Warrick
Position Cursor after Template Execution
Submitted by
WarrickF on
Wednesday, 30 April, 2008 - 17:08
Hi All,
I'm trying to figure out how to position my cursor after I execute a Template using the Templates plugin.
The Clipper plugin allows you to place a "|" (pipe) where you'd like to position the cursor, but I can't seem to find a way to do the same thing using the Templates plugin.
Thanks
Warrick
Running macro xxx times
Submitted by
heinkonijn on
Monday, 21 April, 2008 - 12:08
Hi,
I have created a macro, and I weant to run it multiple times.
I have read the documentation and I cannot find how it should be done.
Is it possible?
Thanks,
Hein
Running Java from within jEdit
Submitted by
Alan-LB on
Saturday, 19 April, 2008 - 06:36
Sorry if this question has been asked before but I couldn't find a thread.
Is there any way of compiling and running a program from within jEdit - ie shelling out to run "javac" and "java". I am using jEdit 4.3 with Windows XP Pro and JDK 6 update 5.
I have tried downloading the "console" plugin but it will not install - it comes up with an error message and suggests getting a later version of the plugin
Everything else works fine.
Alan
Waiting for buffer.save to finish
Submitted by
ntbenari on
Friday, 18 April, 2008 - 08:14
I have some commandos that start with
buffer.save(view,null,true);
after which I build a command to run.
Sometimes the save completes before the command
is run and sometimes it doesn't.
Writing
waitForConsole(view)
does seem to help.
Thanks for any help
Moti
Catalog problem in Linux Environment
Submitted by
srikrishnan on
Tuesday, 15 April, 2008 - 17:54
Hi All,
I am using JEdit both in my windows as well as Ubuntu OSs.
The same XML file vadlidates against it DTD by the mentioned catalog perfectly. But in Linux version it wont work.
I have changed the path also from drive based windows platform to Folder based Linux platform in my catalog file.
below is my catalog line:
below is the first 2 lines in my errorlist window in JEdit:
/media/hdd4/Journals/CUP/AHY/DC/S0667237807000000jra.xml (370 errors, 0 warnings)
2: java.lang.ArrayIndexOutOfBoundsException: 5
Can anybody help me to sort out the catalog problem?
Thanks in Advance,
Srikrishnan
Disabling auto-indentation entirely?
Submitted by
lisaklein20 on
Friday, 4 April, 2008 - 13:52
I've been using JEdit for a few weeks now and have found it to be nearly perfect in almost every respect... however, I MUST find a way to disable the auto-indenting behavior!
Is there a setting that will allow ENTER to simply maintain the amount of indentation of the current line? Currently, the editor is frequently re-aligning, second-guessing, and overriding my tabbing. In general, I would really prefer additional control over indentation, rather than of having the editor force me into its own predefined indentation scheme (which suits my needs 90% of the time, but not always).
Any suggestions?
Find Whole Word only?
Submitted by
harmlesscat on
Monday, 31 March, 2008 - 03:10
In the Find dialog, I'd like to be able to search for whole words only. E.g., I want to search for the word "cat" but not match occurrences of "catalyst". I cannot just put spaces before and after the word, because there are word delimiters other than a space, such as a comma, period, semi-colon, etc.
Some editors, UltraEdit I believe being one, has a "Find Whole Word Only" option in the search dialog, but jEdit does not. Does anyone know of an easy way to do this in jEdit, via a plugin or perhaps a regular expression? (If the latter, I'd prefer not to have to manually enter every possible punctuation mark every time I search this way.)
plugins > plugin mgr > install tab > textarea fiont color (change color?)
Submitted by
222fbj on
Sunday, 30 March, 2008 - 12:41
Where do I control the font color for this? I customized my edit area text colors with black background - and they look good. But the 'plugin install description' textarea is now black on black (ie if I highlight text with mouse I can see it.) I tried both on/off for Utilities > Global Options > Jedit Appearance > Experimental > 'Use Jedit text area colors in all text components'. All other text looks fine.
thanks
Generate Dummy XML from DTD
Submitted by
srikrishnan on
Saturday, 29 March, 2008 - 06:05
Hi All,
In JEdit, is it possible to generate Dummy xml from the selected DTD as same as in XML spy or Stylus studio?
Is there any plugin for this?
Thanks in Advance,
Srikrishnan
Templates won't work
Submitted by
klaxon62 on
Saturday, 29 March, 2008 - 00:51
Folks,
Working with a newish install of Jedit4.3pre9, and plugin Templates 3.3.0 on a Vista Home machine. Behaviour same with similar config on an XP machine. We have good working setup on 2 older installs on XP.
Templates are plain text, no extra code.
When trying to apply a template from the template tree, it fails silently -- text not inserted, no error message.
When applying template from menu Plugins->Templates, the I get the following dump.
If anyone could shed some light on this I would really appreciate it.
____________
java.lang.NoSuchMethodError: org.gjt.sp.jedit.textarea.JEditTextArea.getBuffer()Lorg/gjt/sp/jedit/Buffer;
at velocity.jEditContext.getLeadingWhiteSpace(Unknown Source)
...
how to run ruby script
Submitted by
bench on
Monday, 17 March, 2008 - 21:28
hi!
im following this
http://ruby-talk.markmail.org/message/pw5woijhd4lp3grd?q=jedit
hoping to do the above mentioned task, however, i can't still get a program to run. i get this cryptic beanshell error.
i have the rubyplugin installed.
what am i missing to be able to run a ruby script inside jedit? i also want to have the run result/output generated in one console/window.
thank you!
cajoe
Auto enumeration with search-replace (something like \# in Emacs)
Submitted by
cornelius on
Friday, 14 March, 2008 - 17:44
Hi,
I've been looking for a feature in Jedit, but couldn't find it so far. Emacs allows a special regular expression in replacement strings: \# This gives the current match number/index, i.e. 0 if this is the first match, 1 if second, 2 if third, etc... You can also add an integer to that to start enumeration at any number. So with this, you can automatically enumerate things pretty easily. That is, you can convert
cat
dog
lion
monkey
elephant
into
1 cat
2 dog
3 lion
4 monkey
5 elephant
with a single search-replace operation using \#
Is this possible with jEdit either with regular expressions or with a beanshell script? If so, how?
Thanks in advance.
bakup JEdit
Submitted by
srikrishnan on
Thursday, 13 March, 2008 - 10:10
Hi All,
I am going to format my system. Before that I want to take bakup of my current plugins and customized interface options and I want to reuse that in my new formatted Windows environment.
Is it possible to make a bakup of my current JEdit and reuse it?
Please help me to solve this problem, because I have downloaded most probably all the plugins and macros and customised many shortcuts and JEdit Interface for my work.
Regards,
Srikrishnan
Database access in macros
Submitted by
phade on
Wednesday, 12 March, 2008 - 08:45
Hello,
Knowing how powerful BeanShell really is I wanted to see if it can access databases (oracle). So I wrote quick and small script (real servers replaced of course
):
import java.sql.*;
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@my.oracle.server:1521:MYBASE", "user", "pass");
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery("select BANNER from SYS.V_$VERSION");
while (rset.next())
print (rset.getString(1)); // Print col 1
stmt.close();
I ran it and got:
java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@my.oracle.server:1521:MYBASE
First idea was that it is a classpath problem (BeanShell can not access jdbc oracle driver) so I wrote another quickie to see what classpath BeanShell actually sees.
import java.net.URL;
import java.net.URLClassLoader;
ClassLoader = sysClassLoader = ClassLoader.getSystemClassLoader();
URL[] urls = ((URLClassLoader)sysClassLoader).getURLs();
for(int i=0; i
And yes sure enough it could not see my oracle jdbc in classpath. So I did some testing and discovered that when running jEdit instead of
java -cp oracle.jar -jar jedit.jar
like this
java -cp oracle.jar:jedit.jar org.gjt.sp.jedit.jEdit
then BeanShell finds my oracle jdbc and classpath macro shows also oracle and database macro can connect to oracle server.
So I want to know if it somehow possible to specify classpath when running jEdit like it is usually ran (java -jar jedit.jar) or use some other methods (other than running jedit with org.gjt.sp.jedit.jEdit) to let BeanShell know my new classpath?
Keep up the good work,
Phade