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 

basic AHK editor
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
sleepyy35



Joined: 22 Jul 2004
Posts: 194
Location: cedar city UT

PostPosted: Sat Oct 30, 2004 10:12 am    Post subject: basic AHK editor Reply with quote

i made a very basic editor with ahk Laughing
i had fun scriptin it i still have to do syntax hiliting for it but just thought i would post it Very Happy Very Happy Very Happy

i'm not sure if i can hotlink but lets try it Shocked

nope cant hotlink hahah

http://sleepys-sin.tripod.com/Seditor/html
_________________
^sleepy^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Sat Oct 30, 2004 11:22 am    Post subject: Reply with quote

Hi,

what does it have, what others don't have?

Tekl


Last edited by Tekl on Sat Oct 30, 2004 3:15 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Sat Oct 30, 2004 11:28 am    Post subject: Reply with quote

nothing lol
it was just the fact that i use autohotkey to script it Laughing Laughing Laughing
it was just a fun kinda thing Laughing Laughing
Back to top
sleepyy35



Joined: 22 Jul 2004
Posts: 194
Location: cedar city UT

PostPosted: Sat Oct 30, 2004 11:38 am    Post subject: Reply with quote

opps sorry forgot to log in its very basic and cant stand up to other editors but i thought seeing it was all programed in AHK it would be kinda cool to have kicking around lol Embarassed



^sleepy^
_________________
^sleepy^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Oct 30, 2004 1:46 pm    Post subject: Reply with quote

Looks nice. The "Run" button doesn't work on my system, apparently because there is an extra space inside the file path for the temp script.

To speed up the process of writing the temp script, you might want to add "SetBatchLines -1" at the top (if you haven't already).

Thanks for making the first natively written script editor Smile
Back to top
View user's profile Send private message Send e-mail
sleepyy35



Joined: 22 Jul 2004
Posts: 194
Location: cedar city UT

PostPosted: Sat Oct 30, 2004 6:27 pm    Post subject: Reply with quote

thanx for the feedback yes there was a extra space inside the file path
and i forgot to set the Set Batch Lines thanx for Bringing that to my attenchion
i updated it and i hope evrything works now Smile

http://sleepys-sin.tripod.com/Seditor/html
_________________
^sleepy^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5112
Location: eth0 ::1

PostPosted: Sun Oct 31, 2004 7:35 pm    Post subject: Reply with quote

Hey, thats cool.

I have also made a AHK generator script of my own some time ago. Here are the download links:



Last edited by Titan on Mon Nov 15, 2004 1:48 pm; edited 10 times in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
sleepyy35



Joined: 22 Jul 2004
Posts: 194
Location: cedar city UT

PostPosted: Sun Oct 31, 2004 7:47 pm    Post subject: Reply with quote

hey thats kool Titan thanx for sharing it
i like the menus i did not know we had menus to use Laughing
_________________
^sleepy^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5112
Location: eth0 ::1

PostPosted: Sun Oct 31, 2004 10:05 pm    Post subject: Reply with quote

Ok, I've just updated it. I've adopted your layout Razz
(Note: Open doesn't work yet lol)

Any ideas Chris (other than syntax colouring and code refrence)?
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")


Last edited by Titan on Sun Oct 31, 2004 10:22 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
sleepyy35



Joined: 22 Jul 2004
Posts: 194
Location: cedar city UT

PostPosted: Sun Oct 31, 2004 10:14 pm    Post subject: Reply with quote

my geuss would be to just keep it simple and easy ahk is simple and easy Laughing Laughing Laughing

and thats ok about the layout glad to help lol
_________________
^sleepy^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5112
Location: eth0 ::1

PostPosted: Sun Oct 31, 2004 10:25 pm    Post subject: Reply with quote

AHK is easy correct but using Notepad gets annoying. I'm looking at my Dreamweaver MX (code view) and I'm trying to adopt those styles to (hopefully) make ahk coding easier for everyone.
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
sleepyy35



Joined: 22 Jul 2004
Posts: 194
Location: cedar city UT

PostPosted: Sun Oct 31, 2004 10:33 pm    Post subject: Reply with quote

yes i agree Notepad gets annoying i'm not to sure ahk ppl are useing
Notepad that would be a good poll to ahve Smile there is so meny editors out there that are freeware .
you can only go so far with ahk when creating a editor but its kool to play with and thats a good thing your doing to make it easy for evryone
_________________
^sleepy^
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5112
Location: eth0 ::1

PostPosted: Sun Oct 31, 2004 10:56 pm    Post subject: Reply with quote

sleepyy35 wrote:
yes i agree Notepad gets annoying i'm not to sure ahk ppl are useing
Notepad that would be a good poll to ahve Smile there is so meny editors out there that are freeware .


There are other freeware editors for ahk, so I'm the only one using Notepad lol ?!
I never knew this, I'd appreciate it if you gave me some links Smile
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
BoBo
Guest





PostPosted: Mon Nov 01, 2004 1:00 am    Post subject: Reply with quote

Quote:
Notepad2 1.0.12 [242K] [Download]

Could you please explain how to add or modify syntax schemes?

This requires modification of the Notepad2 source code. [166K] [Download]

The Scintilla documentation has an overview of syntax highlighting, and how to write your own lexer, in case the language you'd like to add is not supported by Scintilla.

The structures relevant to syntax highlighting can be found in Styles.c of the Notepad2 source code. Add your own structures to the global pLexArray, then adjust NUMLEXERS to the total number of syntax schemes. The style definitions can be found in SciLexer.h of the Scintilla source code.

Include the Lex*.cxx files from Scintilla required for your languages in your project and follow the instructions in Readme.txt to rebuild Notepad2. I recommend using Visual Studio .NET 7 or above.

Yep, something a geek should have a look @. Once done, you've created a native AHK-Editor (and btw. to provide that Lexer to the "Scintilla familly" would definitely spread the word about AHK) Cool
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Nov 01, 2004 1:04 am    Post subject: Reply with quote

Quote:
Any ideas Chris (other than syntax colouring and code refrence)?
Unless you're willing to spend a lot of time on it, writing an editor from scratch seems like overkill. And certainly trying to do it as an AHK script is going to severely limit your options and performance. For example, I don't think there's any way to change the color of individual words in a plain Edit control (maybe in a RichEdit control, which isn't yet an option).

Quote:
There are other freeware editors for ahk, so I'm the only one using Notepad lol ?!
I never knew this, I'd appreciate it if you gave me some links
Though I haven't yet starting using it myself, PSPad seems like a good freeware editor, and beardboy was kind enough to make a syntax file and clip library for it (available in the AutoHotkey\Extras folder). I've also heard good things about SciTE.

BoBo wrote:
to provide that Lexer to the "Scintilla familly"
That would be nice to have someday.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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