AutoHotkey Community

It is currently May 27th, 2012, 2:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: February 4th, 2010, 5:58 am 
Offline

Joined: October 30th, 2008, 10:13 pm
Posts: 27
Hi guys,

I'm currently using Notepad ++ to do my AHK scripting...
I find this is great because it has collapsible code, and syntax highlighting...

...but I find i'm still getting lost in the code. What I really want is to be able to assign colour highlighting to different sections (stuff that stays between coding sessions)

I figure a solution is to use a rich text editor like, maybe MS Word?
but then there's the problem of introducing collapsible code and syntax highlighting...

any ideas on this front?

Cheers
BC


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 6:06 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
Try this here link.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 6:53 am 
Offline

Joined: February 27th, 2009, 9:11 am
Posts: 693
Location: Burbank, California
or this one:

http://www.autohotkey.com/wiki/index.ph ... epad%2B%2B

_________________
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom" but let's start to get the data...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 7:28 am 
Offline

Joined: October 30th, 2008, 10:13 pm
Posts: 27
thanks guys.... Scite seems pretty good.
I've got these features in notepad++ already.

What i'm really looking for is highlighting or colour coding parts of the text
(not to be confused with syntax highlighting)

So for example, I have a section of code somewhere around 600 lines in, and I have to keep coming back to it, and jumping between it and another part some 1000 lines of code in...

I want to be able to format, or colour code certain sections of the code so I can quickly find it again...

example: perhaps I have a message box section. If I was in word, I could just colour this section blue, and then scroll through thousands of lines and find it instantly, make a change, then quickly scroll back up to the green highlighted section I was working on before that...

So, rich text formatting, or even a basic version of that would be great...

edit: also, notepad ++ has styles, which is great, but they don't stay across sessions. You can highlight code using "rightclick-> Using 1st Style" but when you close the app it reverts to no style...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 10:54 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
Why not just use comments?

Code:
;This appears greens.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 11:37 am 
Offline

Joined: October 30th, 2008, 10:13 pm
Posts: 27
oh i don't know...

but it might have something to do with the fact that the human eye registers colour about 10 million times faster than it registers the meaning of words...

also because when you type 'green', it's competing with your eye with about a thousand different words in a sea of 10 thousand instances of said words...
(vs colours which are competing with only the other colours you set your code)

in other words, it's the future of coding to be able to add visual meta information to the code to make it easier to navigate (and syntax highlighting and collapsible code is the beginnings of this), so if there's not already a solution, there should be (perhaps in the form of a notepad++ update, an AHK script that remembers and highlights regions of code, or a plugin for notepad++)

:)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 11:43 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
If you use Notepad++ use tillagoto (search the forum) and most editors support bookmarks to mark an navigate. Look at http://www.sublimetext.com/ perhaps it can already do what you want or you can talk to the developer about your ideas :wink: At least is has the minimap showing your entire code

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2010, 10:31 pm 
Offline

Joined: October 30th, 2008, 10:13 pm
Posts: 27
Those two tools are brilliant!

that sublimetext minimap and sidebyside editing are such good ideas...
I'll offer up my suggestions to the author too... good idea... He seems like he's be open to anything and everything that speeds up the process :)

thanks a heap!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, nimda, poserpro, rbrtryn, sjc1000, Yahoo [Bot] and 15 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