Main Menu

Select and change colour

Started by danibus, September 18, 2012, 12:49:00 PM

Previous topic - Next topic

danibus

Good day all
This is 1st post. I'm searching for text editor with "special" highlight to put color in text.
I don't know where to post this, if this is not the correct place pls change  ;)

I use to work with Coprar files. They are a EDI format document with some information.
Then I have something like this:

...
LOC+11+....
...
...  INFORMATION 1 (some lines)
...
TDT+30...
LOC+11+....
...
...  INFORMATION 2 (some lines)
...
TDT+30...
...



I want to put the INFORMATION 1 text lines in one colour and INFORMATION 2 text lines in another one.
More than this, I use to have hundred of different information, then I would like to alternate the 2 colours like this:


...
LOC+11+....
...
...  INFORMATION 1 (some lines)
...
TDT+30...

LOC+11+....
...
...  INFORMATION 2 (some lines)
...
TDT+30...
...
LOC+11+....
...
...  INFORMATION 3 (some lines)
...
TDT+30...

LOC+11+....
...
...  INFORMATION 4 (some lines)
...
TDT+30...
...
...


I just wanna know if this is possible with Hippoedit.
Thanks!!

alex

Hi danibus,

welcome on forum. Sorry for delay with response - was on vacation.

I do not think that there are functionality you want in hippoedit out of the box... There are some functions you can reuse, but all need some work from your side:

  • You can create new syntax schema for coprar files, and define there rules for highlighting INFORMATION 1/2/3.. constructions. HE supports as multi keywords as regular expressions for syntax highlighting (from version 1.50).
  • HippoEDIT supports alternating mode for document visualization (View->Editor->Alternating Mode), which will highlight every second line. But not every N lines. I can think about configuring this N option, but do not think that this will help too much in case of dynamic block size (line count)
  • And at the end HE support extending by binary plugins... Using binary plugin you can extend highlighting as you like, by overlaying additional styles. But this require from you knowledge of C++ / COM or any other language that can produce dll

BR, Alex
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]