Welcome Guest.   Make a donation to an author on the site September 20, 2014, 07:05:57 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
View the new Member Awards and Badges page.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Looking for a text editor that can colorize text  (Read 8611 times)
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« on: April 29, 2009, 09:33:04 PM »

Hi

I guess today is my wanting day. smiley I am looking for a general purpose text editor that relies mostly on coloring text to improve readability and usability. I will be using for browsing text or code. What I am looking for is not code highlighting though(might be part of he deal ). I want this editor to be able to recognize indents, tabs, groups, occuring sentences, words, grammar rules etc and color them either randomly or based on predefined rules. For example one paragraph could be orange the next one would be dark blue etc.

Once I improve my coding I will write one myself but I need one right now smiley

Logged
rjbull
Charter Member
***
Posts: 2,758

View Profile Give some DonationCredits to this forum member
« Reply #1 on: April 30, 2009, 04:02:50 AM »

It goes against the grain for me to say this, seeing I've been fulminating against word processors elsewhere on DC - but would you be better off with a simple word processor that does RTF?  Maybe Jarte or Polyedit?  Otherwise, EmEditor can colourise strings.  However, I don't know anything that will do exactly what you seem to want.
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #2 on: April 30, 2009, 10:36:09 AM »

rjbull, why do you think colorizing can be done only by word processors? Most of the text editors offer code highlighting, this I assume means these apps can colorize any text, they just need little different coloring rules to eachieve what I am looking for. I was just looking for a a new way to create structrured relationships inside any text block basically.

Btw based on features listed on those pages I do not think any of these can do what I am looking for. I am not looking for colorizing a selection(having it would be nice) but really I would not spend money just to colorize some selection.

Btw Emeditor offers quite a bit of features, it sounds pretty cool.
Logged
fenixproductions
Honorary Member
**
Posts: 1,169



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: April 30, 2009, 11:28:35 AM »

2kartal
I think I saw once an application which could help you (partially at least). It was text editor (of course) with the possiblity to use diffrerent syntax highlight schemes for different parts of the text. It was possible to have i.e. first 10 lines coloured as HTML and other 20 as C++. With such functionality and own schemes it could be helpful.

I will try to recall its name but my memory has few holes Wink
Logged

Надо было учиться, а не камни в школу бросать...
--
When I am bored I write for displaynone smiley
--
f0dder is my personal hero smiley
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #4 on: April 30, 2009, 11:45:55 AM »

fenixproductions, sounds like I can use that one. I hope you remember smiley
Logged
muntealb
Member
**
Posts: 90

View Profile Give some DonationCredits to this forum member
« Reply #5 on: April 30, 2009, 01:12:37 PM »

I think EditPad Pro can do what you want. It has a Custom Coloring Syntax Editor that can be used to colorize text based on rules created using regular expressions. This software is free, but only for those that have purchased EditPad Pro.

http://www.editpadpro.com/cscs.html#editor
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #6 on: April 30, 2009, 01:16:47 PM »

Hmm yeah that is interesting, I do not know how much of what I want it can achieve but sure it looks like powerful option.
Logged
fenixproductions
Honorary Member
**
Posts: 1,169



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #7 on: April 30, 2009, 01:34:11 PM »

2kartal
Sorry but I can't find it. I've checked most of the links from my Miranda archive without success. When I lost conversations from few days because of crash I thought nothing important was there. I was wrong Sad
Logged

Надо было учиться, а не камни в школу бросать...
--
When I am bored I write for displaynone smiley
--
f0dder is my personal hero smiley
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #8 on: April 30, 2009, 01:37:42 PM »

fenixproductions, No problemo. Thanks for trying smiley
Logged
housetier
Charter Honorary Member
***
Posts: 1,321


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #9 on: April 30, 2009, 02:30:47 PM »

I MUST say this: I wonder if vim can do this... smiley
Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #10 on: April 30, 2009, 10:18:54 PM »

housetier, probably it can. I know how powerful it is but I have no knowledge of its scripting so i was looking for a ready made app. If I cannot find any I am going back to Vim smiley
Logged
4wd
Supporting Member
**
Posts: 3,332



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: May 01, 2009, 01:24:32 AM »

What about SciTE ?

Both Notepad++ and Notepad2 are based on it and both it and they have code highlighting which is rule based I believe.

Also, PSPad allows you to edit the highlighter settings.
Logged

I do not need to control my anger ... people just need to stop pissing me off!
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #12 on: May 01, 2009, 01:30:57 AM »

Well as I said I am not looking for code highlighting. What I am looking for is an advanced text pattern processor kind of thing that can analyze the text and create different color blocks based on words, repeats, indents, based on anything text pretty much. Trying to create rules for this kind of stuff is I doubt possible with those editors. It looks like Vim scripting is not that hard I will try later somethings with it.
Logged
MilesAhead
Member
**
Posts: 4,841



View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: May 01, 2009, 01:32:11 AM »

What about SciTE ?

Both Notepad++ and Notepad2 are based on it and both it and they have code highlighting which is rule based I believe.

Also, PSPad allows you to edit the highlighter settings.

Speaking of Scite.. do you happen to know how to bring up an ahk script without folding?  Most of my scripts are 2 screens so I really don't need them folded.  Drives me nuts to have to open the menu and hit the Toggle All Folds every time I open a script. (If I can sneak in a tech support question here) smiley
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
MilesAhead
Member
**
Posts: 4,841



View Profile WWW Give some DonationCredits to this forum member
« Reply #14 on: May 01, 2009, 01:35:06 AM »

Well as I said I am not looking for code highlighting. What I am looking for is an advanced text pattern processor kind of thing that can analyze the text and create different color blocks based on words, repeats, indents, based on anything text pretty much. Trying to create rules for this kind of stuff is I doubt possible with those editors. It looks like Vim scripting is not that hard I will try later somethings with it.

Hmmm, you might be able to code it into Emacs if you're willing to lisp(probably supports other script languages by now but lisp is the only one I'm sure about.)
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
4wd
Supporting Member
**
Posts: 3,332



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #15 on: May 01, 2009, 01:48:15 AM »

What about SciTE ?

Both Notepad++ and Notepad2 are based on it and both it and they have code highlighting which is rule based I believe.

Also, PSPad allows you to edit the highlighter settings.

Speaking of Scite.. do you happen to know how to bring up an ahk script without folding?  Most of my scripts are 2 screens so I really don't need them folded.  Drives me nuts to have to open the menu and hit the Toggle All Folds every time I open a script. (If I can sneak in a tech support question here) smiley


The only time I use SciTE is for AutoIT scripts and they always open fully unfolded.

Found it:  Edit Global Options and change 'fold.on.open=1' to 'fold.on.open=0'

That should fix it......I think.
Logged

I do not need to control my anger ... people just need to stop pissing me off!
MilesAhead
Member
**
Posts: 4,841



View Profile WWW Give some DonationCredits to this forum member
« Reply #16 on: May 01, 2009, 12:38:54 PM »

Thanks 4wd.  You saved my sanity!!  The global has it set as you say but I added that line to the ahk.properties and it worked.   thumbs up
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
tinjaw
Supporting Member
**
Posts: 1,926



I'm so glad breakbeat techno isn't an illegal drug

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #17 on: May 01, 2009, 12:50:17 PM »

I should research this before I post, but...  Wink

My guess is that what you need is a text editor that supports language templates and a good helping of regular expressions. Try playing with Notepad++ and create your own language template. If nothing else, it will give you a starting point upon which to build.
Logged

 
DMcCunney
Participant
*
Posts: 3

View Profile Give some DonationCredits to this forum member
« Reply #18 on: May 06, 2009, 04:16:28 PM »

There are lots of text editors that can do syntax highlighting and colorizing, and many are configurable.  I agree with the suggestion of SciTE.  SciTE is based on Neil Hodgson's Scintilla edit control, which includes code folding and syntax highlighting as part of what it does.  As previously mentioned, Notepad++ and Notepad2 are also based on Scintilla, as are a number of other editors.

But whichever you choose, you'll still be faced with creating the rules the editor will use to do the coloring, and adding those rules to the existing lexer files the editor has.  You probably want to spend some time thinking about just how you want your text to be colored, and under what circumstances, to have an idea of what your rules should be.  Then you can look at some editors with configurable highlighting and see what would be involved in getting them to do what you want.

Stop by TextEditors.org and poke around.  It's a wiki devoted to text editors that is trying to be as comprehensive as possible.  If it's a text editor, the site wants to list it.  Mainframe, mini, Unix box, PC, PDA - whatever platform and OS.  You can probably find some candidates to investigate.  (There are enough Scintilla based editors to merit their own Family.)
______
Dennis
Logged
Tinman57
Charter Member
***
Posts: 1,698



Duck! It's another MicroSoft Patch!

View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #19 on: May 06, 2009, 09:26:17 PM »

PSPad - free

http://www.pspad.com/en/
Logged

((((TINMAN))))
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #20 on: May 07, 2009, 12:50:39 AM »

Hmm thanks guys but I do not think my main request is well understood. I am not looking for a text editor that can do syntax highlighting. I am looking for an application or text editor that can process text and create semantic blocks that are represented by colors. Syntax highlighting is a very primitive form of what I am talking  about because it is just based on simple word recognition rules. It just colors when there is   a match. I am looking for something that can do and play with color in a more experimental way.

Btw I have been using Pspad for long time, I like it but as I said it cannot do what I am looking for as far as I can tell.


I am hoping that VIM will replace all my editors in the end because it is more extensible than anything on the list plus it has a nice scripting language.


« Last Edit: May 07, 2009, 12:53:08 AM by kartal » Logged
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #21 on: May 07, 2009, 12:56:57 AM »

tinjaw, I have been avoiding regex for a while but I think the time has come. Vim also supports Regex. Someone in the topic mentioned Editpad pro`s syntax regex editor. I have not checked it out but it look pretty good indeed.

The main problem with syntax highlight stuff is that once you have a template you cannot change the colors, you need to edit the template so it is not really that flexible approach.
Logged
fenixproductions
Honorary Member
**
Posts: 1,169



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #22 on: May 07, 2009, 05:00:20 AM »

2kartal
Maybe draw sample mock-up to explain what do you have on mind Wink

This is what I've understood:



Basing on that, text editor with syntaxt highlight could be OK if it allows to use multiple highlighting schemes in one document. It would work with TXT+project files in similar way to HTML (with divs) + CSS.
« Last Edit: May 07, 2009, 05:14:47 AM by fenixproductions » Logged

Надо было учиться, а не камни в школу бросать...
--
When I am bored I write for displaynone smiley
--
f0dder is my personal hero smiley
kartal
Supporting Member
**
Posts: 1,529


View Profile Give some DonationCredits to this forum member
« Reply #23 on: May 07, 2009, 10:21:01 AM »

fenixproductions

I guess what I am looking for is an editor that would let me color things freely+based on rules(would let mixed style). The rules should be permanent as most Text editor can do but temporary selections or colorings does not need to be saved with the file since this wouldnot be possible with programming editors.  It just helps to be able to select some sentence or block and color it temporarily, in my case it increases readability. I can use word processing for that but then this is like back and forth between applciations which renders unusable for me.

A I said rule based highlighting coloring is good but it does not let me change things on the fly. For example if I select Python syntax highlighting, I need to stick that if I want to change any color, I need to edit the original Python sytax doc to achieve what I want, whcih is not the way I would like to deal with.

So what you have up there looks like something I can benefit from.




Logged
fenixproductions
Honorary Member
**
Posts: 1,169



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #24 on: May 07, 2009, 11:02:40 AM »

Quote from: kartal
So what you have up there looks like something I can benefit from.

If it only exist…

Unfortunately, the picture from above is just and idea (made with Notepad++, Paint.NET and Inkscape).

BTW There was nothing about permanent rules for sections in my mock-up. I admit the lack of description but the way I saw it was that all colouring (both: simple and with syntax) should be based on easily editable templates. Clicking on presented icons would allow you to change colour or rules easily. Of course it could be applied for paragraph, lines or maybe separate words.

I also understand that text cannot store formatting information and that is why I have mentioned "project files".

The simplest way I saw it was: select text, RMB, choose rule (either complex syntax or colour only), done (with some indicators in gutter). That's all.

What I've made is just one fake screen of something bigger.
Logged

Надо было учиться, а не камни в школу бросать...
--
When I am bored I write for displaynone smiley
--
f0dder is my personal hero smiley
Pages: [1] 2 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.049s | Server load: 0.05 ]