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, 8  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
SKAN



Joined: 26 Dec 2005
Posts: 7172

PostPosted: Thu May 11, 2006 3:56 pm    Post subject: Reply with quote

Dear PhiLho, Smile

You wrote:
stylers.xml and langs.xml


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

Regards, Smile
_________________
Suresh Kumar A N
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5031
Location: /b/

PostPosted: Thu May 11, 2006 4:16 pm    Post subject: Reply with quote

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.
_________________
Chat (IRC)PlusNetScriptsIronAHK Contact by email not private message.
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: Thu May 11, 2006 4:34 pm    Post subject: Reply with quote

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.
_________________
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
SKAN



Joined: 26 Dec 2005
Posts: 7172

PostPosted: Thu May 11, 2006 4:38 pm    Post subject: Reply with quote

Dear Titan & PhiLho, Very Happy

Thanks!

Regards, Smile
_________________
Suresh Kumar A N
Back to top
View user's profile Send private message
Ursu
Guest





PostPosted: Fri Jul 21, 2006 5:47 pm    Post subject: Reply with quote

Goyyah wrote:
Dear PhiLho, Smile

...

    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, Smile


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 Smile[/i]
Back to top
Ursu
Guest





PostPosted: Fri Jul 21, 2006 5:50 pm    Post subject: Reply with quote

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" %*
Back to top
PhiLho



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

PostPosted: Fri Jul 21, 2006 8:28 pm    Post subject: Reply with quote

Oh, sorry, I forgot the request. See more information at: AHK.reg: registry settings if you didn't installed AHK.
_________________
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
nick



Joined: 24 Aug 2005
Posts: 500
Location: Berlin / Germany

PostPosted: Fri Jul 28, 2006 8:43 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Fri Jul 28, 2006 9:26 am    Post subject: Reply with quote

Hallo 'd' (wuttke) Smile
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) ... Very Happy

Evtl, "unnötige" Dialekte eliminieren um Notepad2 dabei klein zu halten ??
Danke. Cool
Back to top
corrupt



Joined: 29 Dec 2004
Posts: 2446

PostPosted: Sun Jul 30, 2006 2:58 am    Post subject: Reply with quote

@BoBo: Would you mind rephrasing that in english since this is an english forum? (it doesn't seem to translate well...)
Back to top
View user's profile Send private message Visit poster's website
PhiLho



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

PostPosted: Wed Aug 16, 2006 10:30 am    Post subject: Reply with quote

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.
_________________
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
ahklover



Joined: 16 Sep 2006
Posts: 4

PostPosted: Sun Sep 24, 2006 6:37 pm    Post subject: Syntax Hilighting (SH) in Notepad++ Reply with quote

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



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

PostPosted: Mon Sep 25, 2006 8:39 am    Post subject: Reply with quote

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.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Last edited by PhiLho on Mon Sep 25, 2006 10:22 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
toralf



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

PostPosted: Mon Sep 25, 2006 8:44 am    Post subject: Reply with quote

I guess SH is "syntax highlight"
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ahklover



Joined: 16 Sep 2006
Posts: 4

PostPosted: Mon Sep 25, 2006 10:55 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
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, 8  Next
Page 3 of 8

 
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