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 

Colorful, dynamic AHKPad. Will you help?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  

What do you think about the RTF AHKPad?
Not worth the time...
0%
 0%  [ 0 ]
I would be interested in using it.
66%
 66%  [ 2 ]
Great idea! I can help!
33%
 33%  [ 1 ]
Total Votes : 3

Author Message
Veovis



Joined: 13 Feb 2006
Posts: 390
Location: Utah

PostPosted: Thu Mar 09, 2006 12:37 am    Post subject: Colorful, dynamic AHKPad. Will you help? Reply with quote

Thanks to some wonderful work by Micha and his advanced GUI controls, I think it might be possible to have a colorful and dynamic AHKPad, similar to my Pure AHK version but much, much better.

Heres my idea:
Have an RTF Edit box, but the user has no direct control over the advanced formatting; That is controled by the script, highlighting %variables%, functions:, {brackets}, etc. to whatever colors the user sets in the prefs. The only problems is this: the coloring will (obviously) make the script have a bunch of really ugly RTF formatting.

Enter RTF2Text. A simple and command line ready tool that converts RTF to text very cleanly. All formatting is gone, and not one character is left out. So far I have found no bugs in this program.

What we need:

    As the user types the script will have to actively watch and wait for parenthesis, brackets, semicolens, function names, etc. A parser will also be needed to load a script to the colored, rtf format of the editor upon opening a file.

    Some kind of functioning Find. Something that can select the text that someone searches for. As far as I can tell this is impossible though...

    We could also include something similar to Rajats Intellisense. Or maybe (and correct me if this is not plausible) we could have a drop down list appear when a certain hotkey is pressed that has a list of all commands. For example type "msg" and press ctrl-J and a list will appear with Msgbox on top, with the syntax. Your comments are appreciated.

So that said, who's willing to help make this work? Please give me any comment that comes to mind.

Here is a very innacurate representation of what this MIGHT look like. (this is a picture of WordPad and my AHKPad fused together)

_________________

"Power can be given overnight, but responsibility must be taught. Long years go into its making."
Back to top
View user's profile Send private message Send e-mail Visit poster's website
badmojo



Joined: 11 Nov 2005
Posts: 150

PostPosted: Thu Mar 09, 2006 1:45 am    Post subject: Reply with quote

aye, i agree with the idea... it would complement Rajat's SmartGUI creator well. but my AHK is not that enhanced to help out in developing the script. ;-(

anyways, good luck veovis...
Back to top
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Thu Mar 09, 2006 8:22 am    Post subject: Reply with quote

Your idea is a good one, but it would take too much work to simply achieve was professional editors have already done. My opinion anyway.
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
AGU
Guest





PostPosted: Thu Mar 09, 2006 9:13 am    Post subject: Reply with quote

Sorry to say, but full ack. to Invalid User.

Why doing so much work when there are so many professional editors that already support AHK Syntaxhighlighting. How would your editor benefit the community?

What features does it offer that make them irreplacable compared to other.

Cheers
AGU
Back to top
PhiLho



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

PostPosted: Thu Mar 09, 2006 10:03 am    Post subject: Reply with quote

I believe like the others: while hacking (programming) this would be a very good exercice, I fear the end result would be largely inferior to most available editors. I saw a syntax hightlighting editor written in Visual Basic, it was sloooow. I fear it would be even slower in AHK.

Suggestion: if you ever persist, don't use RichEdit control! It is rather unsuitable for such task... That's why it is so slow.
You should use a specialized component, like Scintilla (I am biased here, but one advantage is that it can be totally controlled by SendMessage), CrystalEdit or SynEdit, to name but a few (the Scintilla site lists, in the Related section, some of these components).
_________________
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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
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