AutoHotkey Community

It is currently May 27th, 2012, 1:17 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3
Author Message
PostPosted: November 11th, 2009, 4:56 pm 
Hi,

I have d/l the .xml file from ludamo, extracted from zipfile and installed in the "C:\Program Files\Notepad++\plugins\APIs" folder as indicated, restarted NPP... however the AHK Autohotkey menu does NOT appear in the Language menu.

I then tried to place of copy of this .xml file to the Apps Data folder for NPP but same result.

I'm under XP Pro SP3, getting a tad frustrated at this very basic issue.

Any help greatly appreciated, I've been using AHK and NPP for a while now, chosing "AutoIt" as a proxy for syntax highlighting (yeah I know, sorry ^^), more than ready to switch gear!

Thanxx in advance.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2009, 5:23 pm 
Sorry I can't edit above post...

Anyway just found out that the xml file I mentioned above is not for syntax highlighting but more for auto-completion/functions support, well s'thing in that area, can't figure out really.

FWIW I have "NPP 5.4.5 (UNICODE)" installed on my PC (latest release).

I also found the "portable Notepad++ for AHK" and installed it here, seems to work Ok (though not based on the most recent release of NPP) and at least I see AHK Autohotkey listed somewhere down the Language menu.

I copied the userDefineLang.xml file from the portable NPP folder to my install of NPP (in C:/Program Files) then restarted NPP... but still does not want to show AHK in the Language menu... :?

Looks like AHK syntax support in NPP 5.4.5 just refuses to work... :?:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2009, 6:20 pm 
Offline
User avatar

Joined: May 24th, 2009, 5:35 am
Posts: 2099
Location: Iowa, USA
First off, thank you vixay - particularly for the AutoComplete xml file. My only complaint is that the Function parameters hint for input is designed only for functions, rather than commands as well :( . Obviously this could be switched by modifying the following line in the xml file:
Code:
<Environment ignoreCase="yes" startFunc="(" stopFunc=")" paramSeparator="," terminal=";" />
; <Environment ignoreCase="yes" startFunc="," stopFunc=")" paramSeparator="," terminal=";" />

but then the parameters hint for input doesn't work correctly for functions. Does anyone know of a way to have both a "," and "(" for the startFunc property?
Or if there is a way to change the startFunc property throughout the file to accomadate "," for commands, and "(" for functions?

@zeepee - I've had the same issues with the installed version of NP++, which is why I just use the portable version. AHK syntax highlighting works fine for me on NP++ portable v5.1.1

_________________
Image
Recommended: AutoHotkey_L
Basic Webpage Controls


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2009, 7:17 pm 
jethrow, thanxx for yr input - HOWEVER:

upon searching further the NPP sourceforge home page, I found the following:

Quote:
There are some language files that you may need. Here're the instructions to install them :

1. Download the user-defined language to your computer
2. Open the file with your favourite text editor (such as notepad++ or notepad)
3. Click start, run, type (or paste in) %APPDATA%\Notepad++ then click ok
4. Open userDefineLang.xml with a text editor
5. If this is the first userdefined language you are adding, copy/paste the entire first file (which you downloaded) into the userDefineLang.xml, replacing all that was there. If this is the second or more language you add, simply copy everything from the first file starting at <UserLang...> to </UserLang> and paste it at the end of the userDefineLang.xml right before </NotepadPlus>
6. Save the newly improved userDefineLang.xml


in essence, if AHK is the only added language in your NPP setup, you can simply copy the file userDefineLang.xml from the NPP Portable folder to the folder: "C:\Documents and Settings\MyName\Application Data\Notepad++", restart NPP (even the latest version), and... BINGO! Works fine! :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 12th, 2009, 1:45 am 
Offline
User avatar

Joined: May 24th, 2009, 5:35 am
Posts: 2099
Location: Iowa, USA
zeepee wrote:
Quote:
... %APPDATA%\Notepad++ ...
That, my friend, it what I was missing. Thanks :D

Anyone know the answer to my first question - how to get the Function parameters hint for input to work with both functions "(" & commands ","?

_________________
Image
Recommended: AutoHotkey_L
Basic Webpage Controls


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 13th, 2009, 3:43 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
This will be my new favorite editor, many thanks :D

After some hotkey were not displayed in function list, I found a small error in config file for function list for multiline comments.
So after using /* with different meaning nothing was shown.
For example:
Code:
MsgBox /*

Fix, in function list:
Multiline Begin / Singleline wrote:
^[ \t]*/\*
Multiline End wrote:
\*/[ \t]*$


Optionally open FunctionListRulex.xml and find 'AHK AutoHotkey' then change
Quote:
<CommList param1="/\*" param2="\*/" />
to
Quote:
<CommList param1="^[ \t]*/\*" param2="\*/[ \t]*$" />


Enjoy ;)

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ Portable
PostPosted: January 6th, 2010, 5:27 pm 
Offline
User avatar

Joined: July 17th, 2008, 12:58 am
Posts: 270
vixay wrote:
How do i do that? I have tried finding/editing it in the wiki, but no luck :(
How do i add a new page? a new category? ...etc? I am logged in and can edit pages but no way to create them?

Until then i've uploaded it to auothokey.net

Features:
- All of Notepad++ v5.0.3 great features!
- AHK Syntax Highlighting
- Function List (not as good as toralf's ActiveGoTo)
- Execute Script (from run command)
- Several AHK scripts, tested with Notepad++:
- toralf's ActiveGoTo
- ISense15 combined with Context sensitive help
- Compile AHK
- AHK Script Tester


is there a new version of this?
Notepad++ is on version 5.6.4 now it has some neat stuff

_________________
QuickSubs | Popcorn Movie Db
All my scripts are just in AutoHotkey v1.0.48.05


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ Portable
PostPosted: August 18th, 2010, 5:33 pm 
Offline

Joined: July 25th, 2010, 2:17 pm
Posts: 13
Okay, so I've downloaded the Notepad++ for AutoHotkey archive, loaded it, reinstalled Notepad++ to get the newest version, and everything works well except for ONE detail... FunctionList! The old one is for the ANSI version, NPP tossed it when loading. Downloaded new Unicode version from plugins repository and it works! Well, except for ONE detail... :?
It's not using the rules that are set up for AHK, so no functions listed. Thoughts anyone? Answers? Anybody spare an extra cup of coffee? :P

Delusion wrote:
vixay wrote:
How do i do that? I have tried finding/editing it in the wiki, but no luck :(
How do i add a new page? a new category? ...etc? I am logged in and can edit pages but no way to create them?

Until then i've uploaded it to auothokey.net

Features:
- All of Notepad++ v5.0.3 great features!
- AHK Syntax Highlighting
- Function List (not as good as toralf's ActiveGoTo)
- Execute Script (from run command)
- Several AHK scripts, tested with Notepad++:
- toralf's ActiveGoTo
- ISense15 combined with Context sensitive help
- Compile AHK
- AHK Script Tester


is there a new version of this?
Notepad++ is on version 5.6.4 now it has some neat stuff


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 19th, 2010, 8:05 am 
You need the 2.1-patch of function list for the unicode-version
http://sourceforge.net/projects/npp-plu ... p/download


Report this post
Top
  
Reply with quote  
PostPosted: April 12th, 2012, 10:52 am 
Offline

Joined: June 12th, 2008, 10:29 am
Posts: 52
You can use the new plugin sourcecookifier to do this as well.

see my thread here to get started
https://sourceforge.net/projects/npp-pl ... dex/page/1

also the page here helped for new version of notepad++ 6
http://www.eiben.weite-welt.com/2010/10 ... y-notepad/

The scite version is quite good, so i see less need for this now, but notepad++ still is a more popular editor. So it should be worth somebody's time to update a new version.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Bon and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group