| View previous topic :: View next topic |
| Author |
Message |
Boskoop
Joined: 01 Jan 2005 Posts: 71
|
Posted: Thu Feb 08, 2007 9:41 pm Post subject: |
|
|
Thank you very much, PhilHo for that lexer- that's great work. And thanks for the HowTo to n-l-i-d. This got me to trie it- before I just waited for Notepad++ to support AHK. Scite runs from USB-sticks and that was exactly what I needed.
By the way: The last post in the Notepad++ Forum by Notepad++ author DonHo , dated 2006-11-19 was | Quote: | didn't see your lexer in Scintilla (even in v17.1).
Please send your source code to me if you want AutoHotKey to be supported in Notepad++.
Don |
Anything new about that?
Boskoop |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Fri Feb 09, 2007 9:48 am Post subject: |
|
|
No, I am not satisfied with the current state of the lexer - decent, but very perfectible - and I started a quite different version. The project is currently sleeping (under a stack of other projects...), but requests like that reduce the delay before awakening... Thanks.
BTW, n-l-i-d, many thanks for this great tutorial! _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 322
|
Posted: Fri Feb 09, 2007 3:44 pm Post subject: |
|
|
| Another interesting question to ask would be also: Why is AutoIt already supported by Notepad++ but AutoHotkey not? |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Fri Feb 09, 2007 4:00 pm Post subject: |
|
|
Boskoop provided the right answer/citation: my lexer isn't yet an official one (integrated to Scintilla). _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Veovis
Joined: 13 Feb 2006 Posts: 390 Location: Utah
|
Posted: Mon Feb 12, 2007 6:34 pm Post subject: |
|
|
Thanks for your excellent work PhiLho.
I use Programmers Notepad 2 which uses the Scite lexer but i have been unsuccessful in trying to make a working ahk syntax highlighting for ahk. When i came upon this post i thought this would solve it but, i still have been unsuccessful in getting it to work. Anyone have an ideas? _________________
"Power can be given overnight, but responsibility must be taught. Long years go into its making." |
|
| Back to top |
|
 |
hughman
Joined: 11 Feb 2007 Posts: 23
|
Posted: Fri Feb 16, 2007 1:43 pm Post subject: |
|
|
When I choose it on WinXPPro (Chinese language), It works fine. However, on Win2k, when I use your lexer and properties and then input Chinese characters , SciTE crashes.
The same case also occurs for the defaut ahk properties file ,which assigns the lexer to asm) , and scilex.dll regardless of xp and 2k. But everything is normal for the au3.
Btw, I use autoit4scite 1.72 |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Fri Feb 16, 2007 3:21 pm Post subject: |
|
|
I am not sure what can be the issue. You should try with WSciTE (standard SciTE distribution) to sort out if the problem is with SciTE or AutoIt4SciTE. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
hughman
Joined: 11 Feb 2007 Posts: 23
|
Posted: Wed Feb 21, 2007 5:25 pm Post subject: |
|
|
I have tried out with both Wscite and Stite4AutoIt3. The case is same.
Now I have to comment
| Code: |
code.page=936
character.set=134
|
Then although there's a little problem to delete unicode charator, the chinese characters can be displayed correctly. ^_^
Another problem : some chinese charaters is colored as numbers |
|
| Back to top |
|
 |
copa_ahk
Joined: 14 Jun 2005 Posts: 23
|
Posted: Wed Mar 14, 2007 4:32 pm Post subject: Not working without modification |
|
|
PhiLho thanks for your effort.
I like editing AHK with SciTE a lot.
But even with your actual version (2006-11-26) I cannot open the AHK help with F1 if I dont modify the follwing two lines in the ahk1.properties:
(removed both "1")
| Code: | command.help.*.ahk=$(CurrentWord)!$(autohotkeydir)\AutoHotkey.chm
command.help.subsystem.*.ahk=4 |
best wishes
CoPa |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Wed Mar 14, 2007 6:14 pm Post subject: |
|
|
Thanks, it is likely a search/replace side-effect...
Compile was broken as well, so I replaced *.ahk1 with $(file.patterns.ahk), which makes more sense anyway.
If somebody wants to add *.ahi or *.ahki (include files), for example, he has to do it in one place only. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
kevin Guest
|
Posted: Thu Mar 15, 2007 12:20 am Post subject: ahk / notepad++ |
|
|
| Boskoop wrote: | Thank you very much, PhilHo for that lexer- that's great work. And thanks for the HowTo to n-l-i-d. This got me to trie it- before I just waited for Notepad++ to support AHK. Scite runs from USB-sticks and that was exactly what I needed.
|
As a user of both Notepad++ and AHK I wondered whether there was any syntax highlighting that was available for the one within the other and so came upon this thread which I have read with interest.
I also came upon an article: Automating Windows with Autohotkey, Monday January 16, 2006 (12:00 PM GMT) By: Dmitri Popov at http://software.newsforge.com/article.pl?sid=05/12/22/2220255&tid=79&tid=130
which stated: | Quote: | | Although you can use any text editor to write scripts, you might want to choose one that can work with Autohotkey's syntax, such as UltraEdit, Textpad, Emacs, or Vim. Autohotkey's Extras folder contains scripts and plugins for many popular text editors, including the excellent Notepad++ |
The extras folder is part of the AHK install and in the editors/notepad++ folder it has a script for installing AHK as a user defined language.
I have just installed it and am about to test it and see how useful it is, but I wonder does this have a bearing on the discussions in this thread? |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Sat May 12, 2007 10:13 am Post subject: |
|
|
Dear Philho,
I'm currently looking at Notepad++ as a possible replacement for PSPad which I'm currently using. I read that this project is put on hold. Could you please give some information when new updates could be expected?
Otherwise I will just try it with the current files. Thanks for the lexer _________________ Ciao
toralf  |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Sun May 13, 2007 8:19 am Post subject: |
|
|
Uh, I am not sure what you mean by "this project".
If you mean my lexer, indeed it was some time since I last updated it. It is quite usable, with a few quirks. I still plan to go back to the project someday.
Now, the problem is that Notepad++ cannot use my lexer without changing the source of the editor. If you plan to do this, fine, many people will rejoice. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Sun May 13, 2007 8:36 am Post subject: |
|
|
Reading this post from Skan suggests that it is possible to use it. Am I wrong? _________________ Ciao
toralf  |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Sun May 13, 2007 11:38 am Post subject: |
|
|
Notepad++ allows to define a language highlighting, but it might be less powerful than my lexer, for a language as complex as AHK. It cannot use my SciLexer.dll without recompilation: list of languages is hard-coded, IIRC. I looked at its source, and of Notepad2, both are quite locked on the supported languages. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
|