 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ahklover
Joined: 16 Sep 2006 Posts: 4
|
Posted: Mon Sep 25, 2006 10:58 am Post subject: |
|
|
SH is Syntax Highlighting (as mentioned in my posting's subject).
BY THE WAY, Thanks to you, Chris, PhiLho, Rajat and other for creating AHK and contributing to the AHK community.
AHK has made mylife easier.
| toralf wrote: | | I guess SH is "syntax highlight" |
|
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Sep 25, 2006 11:22 am Post subject: |
|
|
Oh sorry...
Since in-topic subjects are rarely set, I never look at them...
As for the "SH" file of Notepad++, I am not sure how to use it. IIRC, Notepad++ accepts custom lexers, which is, I think, a primitive generic lexer. I don't know much more. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
horst Guest
|
Posted: Fri Oct 06, 2006 6:25 pm Post subject: Problem with userDefineLang.xml for Notepad++ |
|
|
The end of a multiline comment /* ... */ is not recognized
Notepad++ just interpretes the rest of the file as comment
Has anyone a fix for this ? |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Fri Nov 17, 2006 9:08 am Post subject: |
|
|
New release:
2006-11-14
No changes on the lexer, but I updated the Scintilla version to the latest (1.71). I also improved the regular expression engine to support \d \D \s \S \w \W \xHH (HH = 2 hex digits) inside and outside char classes [...]. Beware for this one: I tested it, but I might have missed a bug. Not yet official.
I also renamed the source from LexAHK.cxx to LexAHK1.cxx (I will rename also the lexer later), because I feel a LexAHK2.cxx will be necessary when the v.2 of AutoHotkey will be out!
ahk.properties is also updated with regex. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Paulo not logged Guest
|
Posted: Sat Nov 18, 2006 1:22 pm Post subject: |
|
|
Hi, PhiLho
Thanks for your work.
I noticed that using your dll and "...AutoHotkey.exe /ErrorStdOut..." in ahk.properties scite is not marking nor jumping to
the "error" line(if any) when we double click the error line reported in Output control.
If you want to add this type of error handling, you just need to edit LexOthers.cxx. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Sat Nov 25, 2006 7:33 pm Post subject: |
|
|
I added support to jump to a function definition, label or hotkey/hotstring/key remapping. See List functions (+ labels + hotstuff) in an AutoHotkey script for more information.
Next step: click on a function call, hit a hotkey, jump to the definition! _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Sun Nov 26, 2006 10:12 am Post subject: |
|
|
New release:
2006-11-26
I renamed the lexer to ahk1 too, so now I renamed the properties file to ahk1.properties. This way, I am consistent all the way!
I also corrected some minor bugs in the regex engine. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 372
|
Posted: Thu Feb 01, 2007 12:46 pm Post subject: |
|
|
It seems that still there's no downloadable package available.
Meaning continuing without special .ahk editing tools. Thanks for your efforts.
This thread is another example for making "possibly easy things" more complicated. My point is:
1- some of you used your brains hardly and developed a nice, very useful tool for AHK.
2- now writing about these tools here in the forum
3- other AHK users read these postings
4- result for other AHK users after reading those postings: NIL.
So the question here is:
Should all the other AHK users do the same effort of those previous great thinkers and developers? If yes, that's the point what I meant above as making "possibly easy things" more complicated. Said in another way what is missing in all these great efforts is "packaging the result" which is easy to use for others. |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Thu Feb 01, 2007 1:43 pm Post subject: |
|
|
1 - Get yourself a Scintilla based editor
2 - Replace the original Scintilla.dll lexer with the one provided by PhiLho
3 - Add the ahk1.properties file provided to the editor's directory
4 - Adapt the settings (file) of your editor to make Scintilla recognize and use the ahk highlighting.
Done...
 |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Thu Feb 01, 2007 1:58 pm Post subject: |
|
|
I am sorry, but I don't understand what you mean...
What do you mean by "no downloadable package available"? I just checked the links and they are OK. In case they were too discrete (the lack of underlining and the fact that their default color doesn't stand out much out of the surrounding text make them hard to spot), I changed their style.
I don't know what makes you think of the point 4). Indeed, there was no massive switch to SciTE, but I didn't expected it. They are some users of my DLL, still. And frankly, I made it first for me, for the fun and challenge, and to have something better than the hijacked ASM lexer...
If by "packaging the result" you meant you want a SciTE ready to use for AHK, I won't do it. The steps to have the result aren't so hard, and a package would be always behind the latest SciTE version anyway.
You can get easily SciTE from SourceForge, you just have to drop my version of SciLexer.dll on top of it, add ahk1.properties to the other properties files and edit a file to change three lines. How hard is this?
Now much more than writing an AHK script, IMHO. (OK, perhaps my first post is too verbose and hides these facts in too much details...)
SciTE might not be the most intuitive editor when it comes to change its settings to your liking, but it is one of the most flexible. Its power comes with a (little) price: reading the doc.
Thanks for your interest.
[EDIT] While I was typing this, n-l-i-d answered in a similar way. Just a point: AFAIK, my SciLexer won't work or won't be taken in account by other Windows-based Scintilla-based text editor (ie. Notepad++ and Notepad2), only by SciTE. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Thu Feb 01, 2007 2:08 pm Post subject: |
|
|
Thx for your advise, but - lets be honest, that might habe been an obvious/task for those who have discussed that topic (at a quite sophisticated level btw.) and are used to use Scintilla, but not for the standard 'consumer', those who would have the greatest benefit regarding the outcome of that discussion ('the lexer').
For a standard user it's a little like you prepare the finest soup ever, and once done, the fellow crowd has to starve in front of the stockpot, because you're not wlling to give'm a spoon.
That's what I've understand from what automaticman has mentioned.
Thx for listening.  |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Thu Feb 01, 2007 2:22 pm Post subject: |
|
|
| FYI. My statement is linked to n-l-i-d's previous/last statement. |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Thu Feb 01, 2007 2:48 pm Post subject: |
|
|
Ok, here a step by step instruction for SciTE:
HowToSciTE4AHK.zip (zip file containing html file + pictures)
 |
|
| Back to top |
|
 |
automaticman
Joined: 27 Oct 2006 Posts: 372
|
Posted: Fri Feb 02, 2007 7:07 pm Post subject: |
|
|
I wanted to use this with Notepad++ which doesn't seem to work there. If anyone found a full Notepad++ solution for AutoHotkey it would be nice to get the link there here.
Important are
- how to add own function lists to Notepad++
- how to add your own language definition syntax to Notepad++ |
|
| Back to top |
|
 |
bschultz66 Guest
|
Posted: Mon Feb 05, 2007 8:33 pm Post subject: |
|
|
| n-l-i-d wrote: | Ok, here a step by step instruction for SciTE:
HowToSciTE4AHK.zip (zip file containing html file + pictures)
 |
except for the location for downloading the files this is great. (I did skim this thread and found it)
I'm finally kicking the notepad habit.
Great work
Great edit tool for ahk -- text editor for AutoHotKey |
|
| 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
|