Main Menu

Colour schemes

Started by Arthur, August 12, 2009, 06:11:43 PM

Previous topic - Next topic

Arthur

So I can add my own colour to colour schemes.
But how do I tie it with syntax files or how do I use it?

alex

Just select it later in Fonts and Colors page for style you want. You can also directly add new color into current color palette from there.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Arthur

Oh, ok, but I actually planned to use this similar to the TODOs implementation:

I created my custom colour and wanted o add a tag called "Test". Now each time I put in code comments this word (Test) it would highlight it in my custom colour.
This is useful when I test some pre-production code but the settings still point to my test environment.

alex

Ok. In this case in addition to color you need to create a style for recognizing the word "Test". Depending on for which syntax you want to use it you can add to Default scheme or specific one.
As example you can use post from Stefan.
But if you want to have this tag also displayed in Overview Bar then you need to define it as Block. Something like this:
      <Style name="Test" text="1" bold="1" italic="1" underline="0" clr="Test" bkclr="#FFFFFFFF" overview="1">
        <Containers>
          <Open id="comment"/>
        </Containers>
        <Blocks>
          <Block text="Test"/>
        </Blocks>
      </Style>


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