AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LexAHK: syntax highlighting for Scintilla (SciTE, others?)
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
Boskoop



Joined: 01 Jan 2005
Posts: 71

PostPosted: Thu Feb 08, 2007 9:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Feb 09, 2007 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
automaticman



Joined: 27 Oct 2006
Posts: 322

PostPosted: Fri Feb 09, 2007 3:44 pm    Post subject: Reply with quote

Another interesting question to ask would be also: Why is AutoIt already supported by Notepad++ but AutoHotkey not?
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Feb 09, 2007 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Veovis



Joined: 13 Feb 2006
Posts: 390
Location: Utah

PostPosted: Mon Feb 12, 2007 6:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
hughman



Joined: 11 Feb 2007
Posts: 23

PostPosted: Fri Feb 16, 2007 1:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Feb 16, 2007 3:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
hughman



Joined: 11 Feb 2007
Posts: 23

PostPosted: Wed Feb 21, 2007 5:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
copa_ahk



Joined: 14 Jun 2005
Posts: 23

PostPosted: Wed Mar 14, 2007 4:32 pm    Post subject: Not working without modification Reply with quote

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
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Wed Mar 14, 2007 6:14 pm    Post subject: Reply with quote

Thanks, it is likely a search/replace side-effect... Sad
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
View user's profile Send private message Visit poster's website
kevin
Guest





PostPosted: Thu Mar 15, 2007 12:20 am    Post subject: ahk / notepad++ Reply with quote

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

PostPosted: Sat May 12, 2007 10:13 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Sun May 13, 2007 8:19 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Sun May 13, 2007 8:36 am    Post subject: Reply with quote

Reading this post from Skan suggests that it is possible to use it. Am I wrong?
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Sun May 13, 2007 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group