 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
SKAN
Joined: 26 Dec 2005 Posts: 7172
|
Posted: Thu May 11, 2006 3:56 pm Post subject: |
|
|
Dear PhiLho,
I am not able to browse the above files. Please check the files.
Regards,  _________________ Suresh Kumar A N |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5031 Location: /b/
|
Posted: Thu May 11, 2006 4:16 pm Post subject: |
|
|
| Goyyah wrote: | | I am not able to browse the above files. Please check the files. | Add "</LexerStyles>" before "</NotepadPlus>" right towards the end of stylers.xml and "</Languages>" for langs.xml. _________________ Chat (IRC) • PlusNet • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Thu May 11, 2006 4:34 pm Post subject: |
|
|
Titan is right.
I updated the file, even if they don't want to be standalone XML files but more stuff to be copied/pasted into the files provided with the editor:
the <Language name="autohotkey" ... </Language> part in langs.xml,
and the <LexerType name="ahk" ... </LexerType> part in stylers.xml. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 7172
|
Posted: Thu May 11, 2006 4:38 pm Post subject: |
|
|
Dear Titan & PhiLho,
Thanks!
Regards,  _________________ Suresh Kumar A N |
|
| Back to top |
|
 |
Ursu Guest
|
Posted: Fri Jul 21, 2006 5:47 pm Post subject: |
|
|
| Goyyah wrote: | Dear PhiLho,
...
It will be very helpful to the community if you can
- .REG files to associate Notepad++ to be the default editor for AHK
Hope my request is not immoderate. ( This is one nice thing that can happen to AHK & the Community. )
Regards,  |
I was reading this to see what to change so that when I right click on an AHK fine and select "Edit", it opens the script with Notepad++ instead of Notepad.
But since the answer wasn't here, I found one, and these are the steps to whoever is interested:
1. Run regedit
2. Go to: HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command
3. Change the value of the key to path to notepad++/notepad++.exe
Hope this helps someone [/i] |
|
| Back to top |
|
 |
Ursu Guest
|
Posted: Fri Jul 21, 2006 5:50 pm Post subject: |
|
|
Actually, don't forget to include the "%1" %* at the end, I forgot to mention that. So the value should look something like this:
"C:\Program Files\Notepad++\notepad++.exe""%1" %* |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
|
| Back to top |
|
 |
nick
Joined: 24 Aug 2005 Posts: 500 Location: Berlin / Germany
|
Posted: Fri Jul 28, 2006 8:43 am Post subject: |
|
|
Dear PhiLho,
I lost some time trying to configure SciTe for AHK on my own. Now I found your lexer and properties files and they do nearly all what I tried to get.
But trying to change the original akh.properties and comparing it with other properties files I found some maybe useful statements to add to the ahk.properties:
| Code: |
file.patterns.ahk=*.ahk
filter.ahk=AutoHotKey (ahk)|$(file.patterns.ahk)|
lexer.$(file.patterns.ahk)=ahk
calltip.ahk.parameters.start= (,
autocomplete.ahk.ignorecase=1
autocomplete.ahk.start.characters=$(chars.alpha)$(chars.numeric)$_@#
word.chars.ahk=$(chars.alpha)$(chars.numeric)_$#@?[]
|
The first one provides a SciTe-like filter for the open file dialogue, the others make autocompletion work (if autohotkeydir is set correctly). I like this and maybe some others too.
At last I suggest to include the lexer, the properties and a brief HowTo into the official download version.
Thank's a lot!
dwuttke |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Fri Jul 28, 2006 9:26 am Post subject: |
|
|
Hallo 'd' (wuttke)
siehst du ne Möglichkeit (d)einen Lexer in [Notepad2] (=SciTe basierend) zu implemetieren und diesen Editor der AHK Community zu "spenden".
Quasi als AHK - Default Editor (final mit AHK gebundled) ...
Evtl, "unnötige" Dialekte eliminieren um Notepad2 dabei klein zu halten ??
Danke.  |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2446
|
Posted: Sun Jul 30, 2006 2:58 am Post subject: |
|
|
| @BoBo: Would you mind rephrasing that in english since this is an english forum? (it doesn't seem to translate well...) |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Wed Aug 16, 2006 10:30 am Post subject: |
|
|
| dwuttke wrote: | | But trying to change the original akh.properties and comparing it with other properties files I found some maybe useful statements to add to the ahk.properties | Oops, I added a $(filter.ahk)\ line in my open.filter variable, but I forgot to define it! Actually, I never use the Open command, either opening from context menu or drag'n'drop. But thanks for reminding.
The ignorecase, I omitted it, because I always type with the exact case, but it is useful and in the spirit of AHK. The start.characters, I reduced it to $(chars.alpha)# because that's the only official chars in the API. If somebody adds some more exotic personal names to the API file, it will add the needed chars. Otherwise, I would change it to just $(word.chars.ahk).
Good suggestions, I updated the file. Thanks. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
ahklover
Joined: 16 Sep 2006 Posts: 4
|
Posted: Sun Sep 24, 2006 6:37 pm Post subject: Syntax Hilighting (SH) in Notepad++ |
|
|
I finally got the SH work for AHK files in SCITE.
But, I could never get SH work for AHK files in Notepad++.
I have copied the new DLL.
Still no luck.
Any suggestions?
Thank you. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Sep 25, 2006 8:39 am Post subject: |
|
|
What is a SH?
Perhaps you missed information in the middle of the topic (2nd page):
| I wrote: | | I made a sad discovery, Goyyah was right, Notepad++ needs to be recompiled too. | See the relevant message for more info. In short, author has hard-coded the list of available languages, so AHK cannot be added as is, needs to be modified and recompiled. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Last edited by PhiLho on Mon Sep 25, 2006 10:22 am; edited 1 time in total |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3906 Location: Bremen, Germany
|
Posted: Mon Sep 25, 2006 8:44 am Post subject: |
|
|
I guess SH is "syntax highlight" _________________ Ciao
toralf  |
|
| Back to top |
|
 |
ahklover
Joined: 16 Sep 2006 Posts: 4
|
Posted: Mon Sep 25, 2006 10:55 am Post subject: |
|
|
SH is Syntax Highlighting (as mentioned in my posting's subject).
Thanks for the info.
I did notice the message about recompiling Notepad++.
But, then, I saw the message from Goyyah about AHK appearing in the Language Menu and a (your?) reply to that. That's when I found the Syntax Highlighting AHK file in my Editors\Notepad++ folder.
I tried running it expecting it to enable SH and it did not do it.
That's why I wrote that.
I am using PSPad now (for editing AHK files).
| PhiLho wrote: | What is a SH?
Perhaps you missed information in the middle of the topic (2nd page):
| I wrote: | | I made a sad discovery, Goyyah was right, Notepad++ needs to be recompiled too. | See the relevant message for more info. In short, author has hard-coded the list of available languages, so AHK cannot be added as is, needs to be modified and recompiled. |
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|