| View previous topic :: View next topic |
| Author |
Message |
fincs! Guest
|
Posted: Tue Apr 24, 2007 8:58 pm Post subject: SciTE4AutoHotkey |
|
|
Note from moderator: This topic has been superseded by the new version of SciTE4AutoHotkey at http://www.autohotkey.com/forum/viewtopic.php?t=19323
====
I created a modified version of SciTE for edit AutoHotkey scripts. Based on PhiLho's LexAHK, it offers:
Tools for AutoHotkey scripting (SmartGUI and AU3_Spy)
Main page
Please enjoy!
-------------------------------------------------------------
Sorry my poor English
Fincs |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Tue Apr 24, 2007 9:11 pm Post subject: |
|
|
The .mht file is an Internet Explorer archive, storing HTML and images (in Base64 encoding, so they are 30% larger!) in a Mime text file.
It is unreadable in Firefox (without special extension).
Thanks for the effort, but currently your page is not usable. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
saperlipopette Guest
|
Posted: Tue Apr 24, 2007 9:15 pm Post subject: |
|
|
Idem for me. I tried with Opera, Mozilla suite, Firefox and IE.
Noting to do with your page.
Please update the link to something which works.
Thanks |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Tue Apr 24, 2007 9:24 pm Post subject: |
|
|
| saperlipopette wrote: | | Idem for me. I tried with [...] IE. | Actually, you can download the file and drag'n'drop it in IE, if I recall correctly...
I just tested with IE 6, it displays correctly. Interesting, although the first download link doesn't work.
If you need advice how to upload pages to a site like AutoHotkey.net, don't hesitate to ask advice here.
Note to myself: find time to update this lexer, it still has quicks that annoy me (eg. it should take anything after an identifier and = sign as a string). _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
saperlipopette Guest
|
Posted: Wed Apr 25, 2007 3:52 am Post subject: |
|
|
You're right, PhiLho
My frist try with IE didn't succeed, I don't know why. The second was OK
So IE must be used to see the page. |
|
| Back to top |
|
 |
fincs Guest
|
Posted: Wed Apr 25, 2007 9:02 am Post subject: |
|
|
Hello,
Sorry for the incompatibility of the web page, and the first download link doesn't work because the installer is no available. Download the ZIP file instead of the installer, it will be available soon.
The problem with the web page is solved
Try the new link:
Main Page
Or download it directly:
Download
Note: SciTE4AutoHotkey uses a modified version of SmartGUI (by Rajat) and it has a bug at put the code in SciTE. The bug will be fixed soon.
Goodbye!
--------------------------------------------------
Sorry my poor English
Fincs |
|
| Back to top |
|
 |
fincs Guest
|
Posted: Wed Apr 25, 2007 12:31 pm Post subject: |
|
|
Hello,
Installer was released. You can download it here:
Download
Please enjoy!
Goodbye!
-------------------------------------------
Sorry my poor English
Fincs |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
Posted: Thu Apr 26, 2007 12:14 am Post subject: |
|
|
I downloaded the ZIP file version and found it easy to unzip and begin using. The file was also smaller than expected: Only about 1 MB even though it also included Smart GUI Creator.
Nice work! |
|
| Back to top |
|
 |
fincs Guest
|
Posted: Thu Apr 26, 2007 11:27 am Post subject: |
|
|
Hello,
Updates are available - Changelog:
Fixed bug on installer that it generates an ahk.properties file that don't let see the AutoHotkey helpfile. Fixed bug on SmartGUI4SciTE at putting the code on SciTE. For download go to the SciTE4AutoHotkey webpage or download it directly.
Goodbye!
-------------------------------------------
Sorry my poor English
Fincs |
|
| Back to top |
|
 |
Futurepower(R)
Joined: 20 Jun 2005 Posts: 35
|
Posted: Tue May 01, 2007 11:43 pm Post subject: Alternative Syntax Highlighting: ahk.properties file |
|
|
SciTE's code folding makes code easier to read. The present version does not syntax highlight .INI files such as AutoHotkey.ini, only .AHK files.
The alternative syntax highlighting file below uses no italic or bold fonts, and increases the intensity of strings. Save the code below with the name:
ahk.properties
and use it to replace the file in
\AutoHotKey\SciTE4AutoHotkey
| Code: |
# ahk.properties file replacement
# from FuturepowerŪ.
# Uses no italic or bold fonts.
# Increases the display intensity of strings.
#_____________________________________
# SciTE settings for AutoHotkey files
# Set default AutoHotkey path
AutoHotkeyDir=$(SciteDefaultHome)\.
# General settings
file.patterns.ahk=*.ahk
filter.ahk=AutoHotkey (ahk)|$(file.patterns.ahk)|
lexer.$(file.patterns.ahk)=ahk1
# Import keywords
import ahk.keywords
# Autocomplete and call tip settings
api.$(file.patterns.ahk)=$(SciteDefaultHome)\api\ahk.api
calltip.ahk1.word.characters=#$(chars.alpha)$(chars.numeric)$(chars.accented)
calltip.ahk1.ignorecase=1
calltip.ahk1.parameters.start= ( ,
calltip.ahk1.parameters.end= )
calltip.ahk1.parameters.separator= ,
autocomplete.ahk1.ignorecase=1
autocomplete.ahk1.start.characters=$(chars.alpha)$(chars.numeric)$_@#
word.characters.$(file.patterns.ahk)=$(chars.alpha)$(chars.numeric)$(chars.accented).$_@#
# Auto Indent - this feature uses lua script
extension.$(file.patterns.ahk)=$(SciteDefaultHome)\indent.lua
# Comments functions definition
comment.block.ahk1=;~
comment.block.at.line.start.ahk1=1
comment.stream.start.ahk1=/*
comment.stream.end.ahk1=*/
comment.box.start.ahk1=/*
comment.box.end.ahk1= */
# Some fold settings
fold.at.else=1
# AutoHotkey Style
# Base (background, base font)
style.ahk1.32=
# Default (everything not below: spaces, untyped parameters)
style.ahk1.0=fore:#C0C0C0
# Line comment (; syntax)
style.ahk1.1=fore:#008000
# Block comment (/*...*/ syntax)
style.ahk1.2=fore:#008040
# Escape (`x)
style.ahk1.3=fore:#FF8000
# Syntax operator
style.ahk1.4=fore:#00C800
# Expression operator
style.ahk1.5=fore:#FF0000
# String
style.ahk1.6=fore:#C0C0C0
# Number
style.ahk1.7=fore:#0000FF
# Identifier (variable & function call)
style.ahk1.8=fore:#C80000
# Variable dereferencing %varName%
style.ahk1.9=$(style.ahk1.8),back:#F0F0FF
# Label, Hotkeys & Hotstrings (& Function definition?)
style.ahk1.10=fore:#000000,back:#FFFFD1
# Keyword - Flow of control
style.ahk1.11=fore:#0000C8
# Keyword - Commands
style.ahk1.12=fore:#0000A0
# Keyword - Functions
style.ahk1.13=fore:#0000FF
# Keyword - Directives
style.ahk1.14=fore:#008000
# Keyword - Keys & buttons
style.ahk1.15=fore:#FF00FF
# Keyword - Built-in Variables
style.ahk1.16=fore:#FF00FF
# Keyword - special parameters ("Keywords")
style.ahk1.17=$(style.ahk1.13)
# Keyword - User defined
style.ahk1.18=fore:#800020
# Variable keyword (built-in) dereferencing %A_xxx%
style.ahk1.19=$(style.ahk1.16),back:#F0F0FF
# Error (unclosed string, unknown operator, invalid dereferencing, etc.)
style.ahk1.20=back:#FFC0C0
# Command to run script (F5)
command.go.$(file.patterns.ahk)="$(AutoHotkeyDir)\AutoHotkey.exe" /ErrorStdOut "$(FileNameExt)"
# Commands to compile script (F7 & Ctrl+F7)
command.compile.*.ahk=$(AutoHotkeyDir)\Compiler\Ahk2Exe.exe /in "$(FilePath)"
command.build.*.ahk="$(AutoHotkeyDir)\Compiler\Ahk2Exe.exe" /in "$(FilePath)"
# Help on keywords (F1)
command.help.*.ahk=$(CurrentWord)!$(autohotkeydir)\AutoHotkey.chm
command.help.subsystem.*.ahk=4
# Active window info tool
command.name.1.*.ahk=Active Window Info
command.1.*.ahk=$(AutoHotkeyDir)\AU3_Spy.exe
command.save.before.1.*.ahk=1
command.subsystem.1.$(file.patterns.ahk)=1
# SmartGUI 4 SciTE
command.name.2.*.ahk=SmartGUI
command.2.*.ahk=$(SciteDefaultHome)\tools\SmartGUI4SciTE.exe
command.save.before.2.*.ahk=1
command.subsystem.2.$(file.patterns.ahk)=2
|
Last edited by Futurepower(R) on Wed May 02, 2007 2:58 pm; edited 2 times in total |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2699 Location: Australia, Qld
|
Posted: Wed May 02, 2007 2:48 am Post subject: Re: Alternative Syntax Highlighting: ahk.properties file |
|
|
| Futurepower(R) wrote: | Then open the file and search and replace all lines with
N:\AutoHotkey
to be your AutoHotkey folder. |
Seeing as you have | Code: | | AutoHotkeyDir=N:\AutoHotkey | would it not be better to replace references to "N:\AutoHotkey" after that with? |
|
| Back to top |
|
 |
Futurepower(R)
Joined: 20 Jun 2005 Posts: 35
|
Posted: Wed May 02, 2007 6:17 am Post subject: I think my way may be a little less risky. |
|
|
lexikos,
I am not familiar enough with SciTE editor to know whether that works.
In fact, I am not familiar enough with that editor to know with certainty that the method I posted works. However, it seems to be correct.
I have found SciTE configuration to be quirky, and there is no GUI for configuration, even after all these years. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Wed May 02, 2007 6:42 am Post subject: |
|
|
The lack of GUI for config is by design: the configuration stuff is much more flexible (using var-like references, like AutoHotkeyDir or
file.patterns.ahk), but it makes it hard to correctly update by a program.
But it makes the editor hard to use and set up for newcomers, indeed.
There is a small third party GUI, covering the basis.
About your code, I see some lines ending with a 's', like style.ahk1.1 or style.ahk1.17, it might be a typo. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Futurepower(R)
Joined: 20 Jun 2005 Posts: 35
|
Posted: Wed May 02, 2007 2:35 pm Post subject: Thanks, PhiLho. I fixed everything, I think. |
|
|
| PhiLho wrote: | | About your code, I see some lines ending with a 's', like style.ahk1.1 or style.ahk1.17, it might be a typo. |
Thanks, PhiLho. It was more than a typo, it was a gremlin. *grin* I was trying to work too fast. I found other mistakes, too. Weirdly, none of them seemed to affect the operation of SciTE. |
|
| Back to top |
|
 |
Elevator_Hazard
Joined: 28 Oct 2006 Posts: 302 Location: US
|
Posted: Sat May 05, 2007 2:05 pm Post subject: |
|
|
Lol nice ahk logo picture, I made it and used it as a siggy once, good to see someone likes it. I was kind of wondering why the program found that picture on my computer on on my photobucket account and then I looked through the SciTE4Autohotkey and found it .
Thanks for making the SciTE stuff for autohotkey, its great and I might switch to it from PSPad occasionally when I'm dealing with unfamiliar commands or commands in which I don't remember the parameter stuff.
Note from moderator: This topic has been superseded by the new version of SciTE4AutoHotkey at http://www.autohotkey.com/forum/viewtopic.php?t=19323 |
|
| Back to top |
|
 |
|