| View previous topic :: View next topic |
| Author |
Message |
bitcloud
Joined: 30 Oct 2008 Posts: 27
|
Posted: Thu Feb 04, 2010 4:58 am Post subject: Colour Coded Coding (Rich Text Coding) |
|
|
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 |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 1158 Location: Indianapolis IN, USA
|
|
| Back to top |
|
 |
flyingDman
Joined: 27 Feb 2009 Posts: 690 Location: Burbank, California
|
|
| Back to top |
|
 |
bitcloud
Joined: 30 Oct 2008 Posts: 27
|
Posted: Thu Feb 04, 2010 6:28 am Post subject: |
|
|
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 |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 1158 Location: Indianapolis IN, USA
|
Posted: Thu Feb 04, 2010 9:54 am Post subject: |
|
|
Why not just use comments?
| Code: | | ;This appears greens. |
_________________ www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
 |
|
| Back to top |
|
 |
bitcloud
Joined: 30 Oct 2008 Posts: 27
|
Posted: Thu Feb 04, 2010 10:37 am Post subject: |
|
|
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++)
 |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Thu Feb 04, 2010 10:43 am Post subject: |
|
|
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 At least is has the minimap showing your entire code _________________ AHK Wiki FAQ
TF : Text files & strings lib, TF Forum |
|
| Back to top |
|
 |
bitcloud
Joined: 30 Oct 2008 Posts: 27
|
Posted: Thu Feb 04, 2010 9:31 pm Post subject: |
|
|
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! |
|
| Back to top |
|
 |
|