jEdit and Ruby on Rails: More Syntax Highlighting
Submitted by
loki_mdog on
Monday, 18 September, 2006 - 23:33
OK...so I have the base syntax highlighting working for the RubyPlugin so that words like "class" and "def" get highlighted but since I'm new to Ruby programming a nice confirmation of when I actually type (or mistyped) a method name would be for more complete syntax hightlighting so that words like: find_all, belongs_to, has_many, scaffold, etc would be recognized.
Now, I know the highlighting is determined by the ruby.xml file and that I could just add keywords to the XML file to get the highlighting to work but I'd then need to constantly be updating the XML file as I added new gems.
So I have two questions:
1. Does anyone know how to get syntax highlighting for the methods (and all the other methods that my ruby install would support) in a dynamic fashion...looking at what is installed and looping through those functions? I'm also new to jEdit and trying to configure it to my liking.
2. If I do need to brute force the XML file and hardcode all the available methods, can someone point me in the direction of a page that would have all the available ruby on rail methods? And all the RHTML methods? I am having a hard time finding someplace where I could copy all the the method names out and format them for the ruby.xml file. I just want a list basically.
Many thanks,
loki_mdog
Is there a way to start appletviewer the Way Commando can start javac?
Submitted by
cct on
Saturday, 2 September, 2006 - 22:54
I'm a newbie, and found how to install the Command Plug in and adapt the tool bar so I can comple and execute applications, but couldn't find out (or figure out) how to make a nice button to click to startup appletviewer to lauch an Applet...
Can I compare 2 files in jEdit?
Submitted by
higgledy on
Thursday, 31 August, 2006 - 11:49
I would like to compare two script files, like this version with previous version, through GUI. Can jEdit do this?
I searched the forums but could not find a similar question, so I posted one.
Edit modes "FUNCTION"
Submitted by
Manil on
Friday, 25 August, 2006 - 02:30
Hi,
i want to know if it is possible to have something like this highlighted as a function:
a ();
b ();
aa ();
ababab();
<*MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="FALSE">(<*/MARK_PREVIOUS>
I know that this will highlight a function but with no space before (, i have code like that sometimes and i want to know if there is a way to highlight a function with n spaces before (
Thx a lot
Info Viewer using Internet Explorer or Firefox under Windows
Submitted by
mserero on
Friday, 25 August, 2006 - 01:16
Hello,
I haven't been abble to use Internet Explorer or Firefox under Windows with Info Viewer.
I use the following command line:
start "c:\Program Files\Internet Explorer\iexplorer.exe" $u
It seems to return the content of the buffer and not the file URL. I used jedit 4.2-pre6 with Info Viewer 1.5.9.
Has anyone attempted to do the same thing?
editing .wsf files
Submitted by
jeisma on
Thursday, 24 August, 2006 - 05:09
hi!
im trying to edit .wsf files but jedit cannot seem to syntax highlight codes with the "script language" sections.
it can aptly recognize .js files though.
i tried to change default edit mode to javascript, xml, html, but to no avail.
anyone have tips on how to go around this?
thanks!
joey
linecomment //
Submitted by
OBI_Ron on
Wednesday, 23 August, 2006 - 20:05
Hello everyone,
I have just started using jEdit, and would like to create a new edit mode to handle Poser cr2 files. I have read thru the help docs, and am using the python.xml as a reference.
In python.xml, the following line handles comments:
PROPERTY NAME="lineComment" VALUE="#" /
So each line that begins with # is recognized as a comment line.
In a cr2 file, comment lines begin with //, and have no end of comment designation. So I tried to use the same cocept:
PROPERTY NAME="lineComment" VALUE="//" /
But I am not getting the results that I would expect. Comment lines are not recognized at all.
Can anyone shed some light on this?
Thanks for your time!
explict folding mode
Submitted by
haras on
Friday, 18 August, 2006 - 17:02
how to use explict folding mode in php, i have tried almost all function in jedit and nothing happens :{
i have for example:
/**
* @name render_menu
// +{{{
* .... some other
*/
public static function render_menu() {
....code...
} //}}}
i want this to produce:
+ render_menu
when i hit + it will expand the code of this method
i have makro downloaded from this site to collapse folds on startup beginning with -{{{ and expand statring with +{{{
but it doesn't work
Different codes
Submitted by
Mauro on
Tuesday, 15 August, 2006 - 19:19
Hello,
I installed JEdit and found it wonderful.
I easily changed the color code settings for PHP but now I've a little problem.
That is: very often in web pages you have sections with different codes.
In the page I used for testing purposes I have:
- about 20 lines in PHP;
- about 20 lines in JavaScript;
- about 80 lines in (X)HTML;
Now, the three languages are following the "color rules" I set for PHP.
It is possible to have different code colors for these three languages in the same .php page? Please, tell me it is...

and possibly how...
Thanks very much.
Is there a C++ class browser plugin?
Submitted by
kernco on
Monday, 14 August, 2006 - 23:12
I am using JEdit 4.2 final, and I was wondering if there is a C++ class browser plugin or something that will show an "outline" ala Eclipse. I'd prefer to not have to upgrade to a 4.3 version, since that would mean installing manually instead of through apt-get. Thanks.
Associating JEdit with file extensions in windows.
Submitted by
nirnex on
Friday, 11 August, 2006 - 16:33
I'm using JEdit in Windows XP and currently use it primarily for Python and some propriatary language work. What I'd like to be able to do is associate JEdit with certain file types so that they can be double-clicked to open into JEdit. I know I used to be able to do this in an older version of JEdit (4.1 I think) but can't seem to get it to work with 4.2 or 4.3. I also need to be able to set the association app with a custom memory heap as I often have to open very large files and keep my heap set for 1Gb. Any assistance on this is very appreciated.
ProjectViewer doesn't maintain file list
Submitted by
djames on
Sunday, 6 August, 2006 - 04:32
After importing files into a project, there is not an obvious way to "save" the project - save appears to save any open files only. When I close and re-open jEdit, the imported files do not appear, and have to be re-imported each time. What am I missing?
few keys dont work
Submitted by
urh on
Thursday, 3 August, 2006 - 23:45
I cant delete text or code in jedit with delete or key above enter on keyboard and also cant do new line with enter and so on.. The only way to change text or code is: mark it first and then rewrite it with new text / code.
Screen:
http://urh.modprobe.net/test.png
I have bee using jedit for a long time, but I did reinstall of my system few days ago and now is not evething ok..
Thanks for any suggestions,
Best regards,
Urh
Edit Modes: Highlighting Attribute Keys In an HTML Tag
I would like to color html attribute keys a different color than the tag names themselves. I'm actually going to be hoping this comes across to my coldfusion coloring, and I think the right way to do that is change the html.xml and then delegate it into the coldfusion.xml.
I"ve been using jEdit for about a year, and have done small mods to the edit modes. I've also read through all the edit mode documentation in the help.
Which command will help me color the attribs differently?
For instance:
[form name="XYZform" action="index.cfm"]
(using brackets instead of gt and lt so I won't get weird display.
Right now, "form", "name", and "action" are the same color. I want "form" to remain as it is, and "name" and "action" to be caught by a rule in the colorer.
None of the current methods of matching look like they would work. Though I'm sure something will, I'm just not used to the way the edit modes think.
Can somone help point me in the right direction?
Printing PAGE BREAKs
Submitted by
turtlecove on
Thursday, 3 August, 2006 - 00:33
Can I embed a PAGE BREAK in a text file for jEdit?
I am trying to use jEdit to maintain a large file to be printed on 4x6 index cards. I need to be able to mark the start or end of the next page for printing.
Outline sidekick plugin
Submitted by
turtlecove on
Thursday, 3 August, 2006 - 00:23
I installed the 'outline' plugin to quickly browse text outlines.
(jEdit 4.3pre5, sidekick 0.6.4, outline 1.2)
For most text outline shows nothing at all, just 'Not Parsed'. This is even though the folding indicators in the main text are working just fine.
For the one case where I can get it to show a tree, it messes up the folding levels. For every change in the tabbing it always makes a sub-level, ie: a new level further indented to the right no matter what is actually in the text. For example:
- Mainheadline
- indent1
- indent2
- indent3
- indent4
is shown in the outline sidekick as:
- Mainheadline
- +--indent1
- +--indent2
I can use the folding commands in the main text (ie: control-e c and control-e x) and they properly show the indenting.
Does 'outline' not do what I think it does?
Show/Hide Columns in the File System Browser
Submitted by
mkuehn on
Wednesday, 2 August, 2006 - 15:33
Is there any way to select which columns are shown in the File System Browser? I'm open to installing a plug-in, editing a configuration file, whatever, to add this functionality.
I thought this existed in a previous version of jEdit. Or am I wrong?
Thanks,
Matthew
reload directory hotkey
Submitted by
metric152 on
Tuesday, 1 August, 2006 - 22:17
Does anyone know if there is a setting I can map a hotkey to for "Reload Directory"? I've tried looking through the configuration screen and I can't find one.
Drag'nDrop not working on ubuntu
Submitted by
tig12 on
Tuesday, 1 August, 2006 - 10:47
Hello,
I use JEdit 4.2final with java.version=1.5.0_06 on Ubuntu Dapper ;
When I try to drag'n'drop a file, it doesn't work, and I see this in the activity log :
[debug] Java14$TextAreaTransferHandler: canImport() returning false
[debug] Java14$DropHandler: Drag enter
[debug] Java14$DropHandler: Drag exit
Anyone has an idea to fix that ?
Developing Java
Submitted by
shaun510 on
Sunday, 30 July, 2006 - 19:13
Hey, Im new to jEdit and have a really elementary question. Ive read the documentation, but I am still a little confused about the plugin. I wrote my source code in jEdit and saved it as a .java file. jEdit then colour formatted the text appropriately even though I never installed any java plugins. Is that what its supposed to do? I thought i needed to install a plugin for jEdit to recognize my source code as java.
Thanks,
Shaun