| View previous topic :: View next topic |
| Author |
Message |
BoBo Guest
|
Posted: Mon Oct 03, 2005 10:07 pm Post subject: jEdit - AHK Ready |
|
|
We proudly present an amazing piece of work kindly provided by Boskopp at the German AutoHotkey Forum.
jEdit, an editor written with JAVA (I guess you would be able to write AHK scripts while on Linux ), ready to deal with AHK !
Maybe Lazlo (or another bi lingual expert is able to adopt this for the english speaking comunity, as the [HowTo configure jEdit for AutoHotkey] is written in German. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Oct 04, 2005 1:25 am Post subject: |
|
|
| There is a jEdit configuration distributed with AutoHotkey (in the extras folder). Assuming this is the same "jEdit" referred to above, Boskopp or anyone else is welcome to submit improvements for distribution. |
|
| Back to top |
|
 |
aarondellis
Joined: 15 Aug 2005 Posts: 57
|
Posted: Tue Oct 04, 2005 1:40 am Post subject: |
|
|
Not bad! I don't see it replacing my PSPad however. Maybe because I am just used to it but PSPad seems to be more solid (for lack of a better word).
Just my opinion! |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Oct 05, 2005 5:05 am Post subject: |
|
|
| aarondellis wrote: | | Maybe because I am just used to it |
That is correct.
Jedit can do lots of things that pspad can't do. Check out the plugins. PSPad is good, but it's not perfect. I like Jedit and pspad, but still vim is first choice. |
|
| Back to top |
|
 |
aarondellis
Joined: 15 Aug 2005 Posts: 57
|
Posted: Wed Oct 05, 2005 5:22 am Post subject: |
|
|
| Quote: | | Jedit can do lots of things that pspad can't do. Check out the plugins. |
WOW! A lot of things that I don't/won't (pick one) need to write AHK scripts. I looked through the plugins and can't see why I would need them to write AHK scripts. If there are any huge short comings with PSPad I have not found them (not yet anyway). Don't get me wrong! It looks like there are many options with JEdit but again most all of them appear to be for something other than writing AHK scripts.
Just my opinion!
VIM!!!!!! No wonder you logged a message as Guest! |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Oct 06, 2005 1:39 am Post subject: |
|
|
Pspad has a problem with wrapping and searching. Load a file that has long lines in it. A log file for example. Then turn on line numbering and wrapping in pspad.
Here are the instructs for turning on pspad wrapping (from the PSPad author himself)...
PSPad v4.3.3 (2092)
1) From the menu bar: "Settings" » "Program Settings..." » click [Direct Edit] button » change "WordWrapEnabled=0" to "WordWrapEnabled=1".
2) A new 'lines wrapping' button will appear in the middle of toolbar, to the right of the "Delete Selected Text" button, [X].
3) Close and re-open PSPad to enable word wrap.
If you can see that the lines are wrapped, search for a word that appears several times throughout the file. When searching select the List option. In the search results window, note how the line numbers do not match where the searched for string is. Also, dbl-click on some of the lines in the results window. Note how the highlighted line does NOT have the searched for string in it.
This bug has been in pspad for just about forever. I do not expect to see it fixed soon.
Jedit has an advanced search plugin which is just one example of a plugin that I would use with writing AHK scripts.
I guess that you are also clueless about Vim as well. |
|
| Back to top |
|
 |
Boskoop
Joined: 01 Jan 2005 Posts: 71
|
Posted: Thu Oct 06, 2005 9:06 pm Post subject: HowTo configure jEdit for AutoHotkey |
|
|
This is the short version of my HowTo configure jEdit for AutoHotkey (in German). You can find the scripts and the more detailed Howto in German here for download . It might be necessary to change some paths in the scripts.
Maybe someone feels like adapting the install-script that comes with AHK?
Download jEdit
http://prdownloads.sourceforge.net/jedit/jedit42install.exe
Starting jEdit from USB
jEdit store configuration data by default in the directory "Documents and Settings". If you want to store config files somewhere else (on a USB-stick), you can start jEdit using the following AHK-skript.
| Code: |
run, cmd /c javaw.exe -jar .\jEdit\jedit.jar -reuseview -settings=%A_ScriptDir%\jEdit_Settings\, ,hide
|
Installing AHK-Syntax-highlighting
The AHK-syntax file ahk.xml that came with the distribution had a few bugs. I tried to repair them, hopefully without adding new ones. You can download it here:
To install it, copy the file in the "Modes" directory. Then add the following line to the file "catalog" in the same dir:
| Code: |
<MODE NAME="ahk" FILE="ahk.xml" FILE_NAME_GLOB="*.{ahk}"/>
|
Installing AHK context sensitive help
The AHK-script SearchAHKHelp.ahk (adapted from Rajats Intellisense) searchs the AHK help for the clipboard content. To call this script from jEdit, copy the file RunAHKHelp.bsh to the directory \macros\Misc\ Then you will find the command RunAHKHelp in the Macros-Menu (Macros-Misc-RunAHKHelp)
Running AHK-Scripts from jEdit
Copy the script AHK_run.bsh into the directory \macros\Misc\ Then you will find the command Run AHK in the Macros-Menu (Macros-Misc-RunAHKHelp). |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Oct 07, 2005 12:31 am Post subject: |
|
|
| Thanks for the English translation. I'll try to apply your improvements to the version distributed with AutoHotkey. Since it might be a while, anyone is welcome to do it beforehand. Though probably too much to expect, it would be ideal to have a simple GUI for J-edit configuration like the one for TextPad (which is at Extras\Editors\TextPad\Run this to install syntax and clip library files for TextPad.ahk). |
|
| Back to top |
|
 |
|