AutoHotkey Community

It is currently May 24th, 2012, 5:39 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 123 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Author Message
 Post subject:
PostPosted: February 8th, 2007, 9:41 pm 
Offline

Joined: January 1st, 2005, 11:54 am
Posts: 75
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2007, 9:48 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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!

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2007, 3:44 pm 
Offline

Joined: October 27th, 2006, 10:12 am
Posts: 649
Another interesting question to ask would be also: Why is AutoIt already supported by Notepad++ but AutoHotkey not?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2007, 4:00 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Boskoop provided the right answer/citation: my lexer isn't yet an official one (integrated to Scintilla).

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2007, 6:34 pm 
Offline

Joined: February 13th, 2006, 10:40 pm
Posts: 389
Location: Utah
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?

_________________
Image
"Power can be given overnight, but responsibility must be taught. Long years go into its making."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2007, 1:43 pm 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2007, 3:21 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2007, 5:25 pm 
Offline

Joined: February 11th, 2007, 4:10 pm
Posts: 185
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


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 14th, 2007, 4:32 pm 
Offline

Joined: June 14th, 2005, 10:47 am
Posts: 28
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2007, 6:14 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject: ahk / notepad++
PostPosted: March 15th, 2007, 12:20 am 
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.p ... 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?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 12th, 2007, 10:13 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 8:19 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 8:36 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Reading this post from Skan suggests that it is possible to use it. Am I wrong?

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 11:38 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 123 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 4 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