hpwPlusMemo Config file question - Forum

Forum Navigation
You need to log in to create posts and topics.

hpwPlusMemo Config file question

I'm just confused with the Color Format used in sample .ini config files (NewLisp.ini):

16711680

I cant find what format is this color (i need to create my own)

Can anyone help on this please? :)

Also i need to know how to make color of a word change like this one "Word   "
(I can change background color of this 'word' but there is 3 spaces after which will not get changed)

Hello,

It is an RGB integer value. You can use such color in hpwImage draw commands. (besides other formats)

You may have a look at hpwColorConvert in hpwUtility.

Your last question is not a simple task. Syntax highlighting is based on parsing the text using delimiter character.

Spaces are such character. So the highlighter is detecting a word-boundery at the end of the word "word".

Regards

Hans-Peter

 

noyzen has reacted to this post.
noyzen

Nice, it was Int32 format.
hpwUtility hpwColorConvert can detect and convert it.

Thanks you so much!