Jump to content
Sign in to follow this  
Stilgar

jEdit4AutoIt

Recommended Posts

Stilgar

I've created some extensions for jEdit to work with AutoIt scripts:

Posted Image

Included in the archiv:

  • Edit-mode
  • Commando files (wrapper for tools like Au4check:)

    Posted Image

  • XInsert library

    Posted Image

  • Clipper libraries
  • ctags

    Posted Image

  • Macros, more then 30 for debugging, editing
  • And a simple preprozessor:

    example:

    ; File ............: __NAME__
    ; AutoItVersion ...: __AUTOIT_VERSION__
    ; Time ............: __TIME__
    ; Date ............: __DATE__
    
    #define Text "foo bar"
    #define Var1 $ok
    #define Var2 $test
    #define Beta
    
    #ifdef Beta
        #include <test_beta.au3>
    #else
        #include <test.au3>
    #endif
    
    Var1 = ( 1 > $a ? "ok" : Text )
    
    For $i : $aArray
        MsgBox(64,"",$aArray[$i])
    Next
    
    $a << 2
    $b = $a%$c
    
    #undef Var2
    
    #ifdef Var2
            MsgBox(64,"","1")
    #elif Test
            MsgBox(64,"",Var2)
    #elif Var1
            MsgBox(64,"",Text)
    #else
            MsgBox(64,"","3")
    #endif
Edited by Stilgar

Share this post


Link to post
Share on other sites
GEOSoft

It seems that the JEdit site is down. This looks promising though.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
rajeshontheweb
JRSmile

edit: you forgot to add buffertabs to the plugin list ( which is activated in the video)

the update autoit udfs script does not work in my macro menu, i had to execute it by hand via scite :-)

Edited by JRSmile

$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])))''Chr("a")&"HI"Next;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)

Share this post


Link to post
Share on other sites
Stilgar

@all:

Thank you!

edit: you forgot to add buffertabs to the plugin list ( which is activated in the video)

the update autoit udfs script does not work in my macro menu, i had to execute it by hand via scite :-)

OK buffertabs are added now.

The "Update UFDs" macro works for me under Vista and Win XP. It only shows after a few seconds a ready-messages, that's all.

Share this post


Link to post
Share on other sites
JRSmile

it lags with a "C:\Documents" message, i think there are missing ' " ' thinks for full path. using english version Documents and settings has whitespaces in its path variable.

i tested out the bsh script but that works, maybe the au3 is wrong.

btw: i now ended up in a perfect editor :D only the tab complete of the intelli sense is missing.


$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])))''Chr("a")&"HI"Next;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)

Share this post


Link to post
Share on other sites
Stilgar

it lags with a "C:\Documents" message, i think there are missing ' " ' thinks for full path. using english version Documents and settings has whitespaces in its path variable.

i tested out the bsh script but that works, maybe the au3 is wrong.

btw: i now ended up in a perfect editor :D only the tab complete of the intelli sense is missing.

Oh, that's could be. I'll fix this.

If you have SideKick (ctags ...) installed, autocomplete should working. Look under the Plugin-options from SideKick if autocomplete is enabled.

Only a MS-Intellisense ®©-clone is not available.

Share this post


Link to post
Share on other sites
JRSmile

re again, i tried everything with ctags and sitekick i could mention about, no more popup window anymore and no kind of autocomplete...

thats sad, everything else is working like a charme.


$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])))''Chr("a")&"HI"Next;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)

Share this post


Link to post
Share on other sites
Stilgar

re again, i tried everything with ctags and sitekick i could mention about, no more popup window anymore and no kind of autocomplete...

thats sad, everything else is working like a charme.

- Is the SideKick-plugin working?

- Do you see the function (regions ...) list?

- Is the SideKick-parser in autoitscript-mode ctags?

- Do you have the ctags-path in the Ctags-SideKick-options e.g.

"C:\Program Files\ctags\ctags.exe" ?

Share this post


Link to post
Share on other sites
Stilgar

A small update:

* added a small GUI for the progress to jEdit4AutoIt_UDF_Updater.au3

* added to the macro PP.bsh:

- some preprocessor statements

#define

#undef or #undefine

#ifdef / #elif / #else / #endif (not nestable yet)

- and two macros:

__DATE_AND_TIME__

__AUTOIT_BETAVERSION__

More informations are on the homepage.

Stigar

Share this post


Link to post
Share on other sites
Stilgar

Update:

- changed: console-commands

- fixed: preprozessor #ifdef structure

- fixed: Function Wizzard: empty line in parameter list

For more informations look at the homepage, please.

Share this post


Link to post
Share on other sites
JRSmile

would it be possible to have a release that is preconfigured?

following the video isn't as easy as it looks :-)


$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])))''Chr("a")&"HI"Next;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)

Share this post


Link to post
Share on other sites
Stilgar

would it be possible to have a release that is preconfigured?

following the video isn't as easy as it looks :-)

What should I preconfigure?

Share this post


Link to post
Share on other sites
JRSmile

don't you have to configure jedit after installation and adding your mod?

i had to do the excact same thing like in your video to have it like it is shown on your screenshot.

adding all the stuff manually etc.


$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])))''Chr("a")&"HI"Next;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)

Share this post


Link to post
Share on other sites
Stilgar

don't you have to configure jedit after installation and adding your mod?

i had to do the excact same thing like in your video to have it like it is shown on your screenshot.

adding all the stuff manually etc.

Not really. I'm using jEdit since 8 years with ~15 different languages and all the plugins you see on the lists.

The only things you have to change manually, after you have installed the plugins and copied the two directorys are:

- adding the edit mode

- changing two paths in the plugin-options (if you haven't used them before)

- adding the error-patterns

- and config some shortcuts.

Share this post


Link to post
Share on other sites
Stilgar

This updates are little bit older ... changes since the last update:

PP.bsh (Preprocessor):

* added: <<=

* added: >>=

* added: %=

* updated for use with array variables

Edit-Mode:

updated to AutoIt V3.3.1.0

* added: regex-syntax highlighting to 'strings'

* added: syntax highlighting for PP.bsh directives and constants

* changed: color for directive lines

Xinsert:

* updated to AutoIt V3.3.1.0

UDFs are updated via macro Update_UDFs if the beta is stable.

More informations you can find on the homepage.

Share this post


Link to post
Share on other sites
Stilgar

A small update:

Macros:

* New Macro: "Doc Update"

Updates "Date" and "Syntax" entries of the current function

Console-Commandos:

* Added option to the compiler to switch between exe/a3x files

Online-Help:

* The FF.au3-online-help is now viewed in the web-browser (online only)

Share this post


Link to post
Share on other sites
Dolemite50

What are you trying to do, break my heart? This looks incredible but I can't walk out on the ball and chain (SciTE) after all the good years. I kindly decline your offer, now get on out of here with your fancy-schmancy temptress of an editor. I bid you good day!!!

....oh hi,.. I'm back,..say,.. I have this friend who might enjoy your editor. If it's OK with you I'll just install it here on my machine so they can try it later.

Thanks, I'm they're looking forward to checking it out.

Share this post


Link to post
Share on other sites
Arion

Is anyone still interested in this? jEdit is a really good editor, though jEdit4AutoIt now takes a few tweaks to get it to work properly. If there is any interest, I'll gladly repackage all of the updated files to work with the latest version of AutoIt (V3.3.8.1) and jEdit (5.0)


[quote]“Programming is like *ex: one mistake and you’re providing support for a lifetime.”(Michael Sinz)[/quote] [quote]“There are two ways to write error-free programs; only the third one works.”(Alan J. Perlis)[/quote]

Share this post


Link to post
Share on other sites
BrewManNH

Thanks for bumping this topic, I'm going to have to take a look at this editor and see how good it is now. :)


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.