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 

Colour Coded Coding (Rich Text Coding)

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
bitcloud



Joined: 30 Oct 2008
Posts: 27

PostPosted: Thu Feb 04, 2010 4:58 am    Post subject: Colour Coded Coding (Rich Text Coding) Reply with quote

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



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Thu Feb 04, 2010 5:06 am    Post subject: Reply with quote

Try this here link.
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
flyingDman



Joined: 27 Feb 2009
Posts: 690
Location: Burbank, California

PostPosted: Thu Feb 04, 2010 5:53 am    Post subject: Reply with quote

or this one:

http://www.autohotkey.com/wiki/index.php?title=Notepad%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...
Back to top
View user's profile Send private message
bitcloud



Joined: 30 Oct 2008
Posts: 27

PostPosted: Thu Feb 04, 2010 6:28 am    Post subject: Reply with quote

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



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Thu Feb 04, 2010 9:54 am    Post subject: Reply with quote

Why not just use comments?

Code:
;This appears greens.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bitcloud



Joined: 30 Oct 2008
Posts: 27

PostPosted: Thu Feb 04, 2010 10:37 am    Post subject: Reply with quote

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++)

Smile
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Thu Feb 04, 2010 10:43 am    Post subject: Reply with quote

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 Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
bitcloud



Joined: 30 Oct 2008
Posts: 27

PostPosted: Thu Feb 04, 2010 9:31 pm    Post subject: Reply with quote

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 Smile

thanks a heap!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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