AutoHotkey Community

It is currently May 27th, 2012, 8:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 123 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 9  Next
Author Message
 Post subject:
PostPosted: May 11th, 2006, 4:56 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Dear PhiLho, :)

You wrote:


I am not able to browse the above files. Please check the files.

Regards, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2006, 5:16 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
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.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 11th, 2006, 5:34 pm 
Offline

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

_________________
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 11th, 2006, 5:38 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Dear Titan & PhiLho, :D

Thanks!

Regards, :)

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 21st, 2006, 6:47 pm 
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]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 21st, 2006, 6:50 pm 
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" %*


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 21st, 2006, 9:28 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Oh, sorry, I forgot the request. See more information at: AHK.reg: registry settings if you didn't installed AHK.

_________________
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: July 28th, 2006, 9:43 am 
Offline

Joined: August 24th, 2005, 5:29 pm
Posts: 549
Location: Berlin / Germany
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2006, 10:26 am 
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) ... :D

Evtl, "unnötige" Dialekte eliminieren um Notepad2 dabei klein zu halten ??
Danke. 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 30th, 2006, 3:58 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
@BoBo: Would you mind rephrasing that in english since this is an english forum? (it doesn't seem to translate well...)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 16th, 2006, 11:30 am 
Offline

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

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


Report this post
Top
 Profile  
Reply with quote  
PostPosted: September 24th, 2006, 7:37 pm 
Offline

Joined: September 16th, 2006, 11:00 pm
Posts: 4
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2006, 9:39 am 
Offline

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

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


Last edited by PhiLho on September 25th, 2006, 11:22 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2006, 9:44 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I guess SH is "syntax highlight"

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2006, 11:55 am 
Offline

Joined: September 16th, 2006, 11:00 pm
Posts: 4
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.


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 ... 9  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 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