You are here: PSPad forum > English discussion forum > Feature Request: Hexadecimal Option in User Highlighters.

Feature Request: Hexadecimal Option in User Highlighters.

Goto Page: Previous1 2 3 Next

#11 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: Armagon | Date: 2020-01-27 07:08 | IP: IP Logged

I gave this some thought, I came up with a few ideas, but I feel I have a good suggestion. To avoid conflict with users that may actually be using $ style comments you could create and insert 1-2 new (ASM) languages into the user highlighters Add hexadecimal, and disable $ style comments for them (greying them out).

This might prove the safest method without conflict to current users. But you probably have a lot more to consider. No need to explain if this isn't a good idea it just seems feasible.

Options: Reply | Quote | Up ^


#12 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: pspad | Date: 2020-01-27 07:20 | IP: IP Logged

I think language what uses $ for comments won't use the same initial char for HEX numbers. It's all, simple and it won't be against nothing.

Options: Reply | Quote | Up ^


#13 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: Armagon | Date: 2020-01-27 18:58 | IP: IP Logged

ibb.co

I started this post wrong I now realize. I should have phrased it "Need help configuring User Highlighter".

The pic above pretty much encompasses what the code style looks like (and shows current settings).

Can you tell me how I can make $FA00 and #$6400 different colors?
Thx! I do apologize, but I assumed hexadecimal was a solution.

I just started messing with the syntax highlighter a few days ago so its still a bit new to me.

Options: Reply | Quote | Up ^


#14 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: pspad | Date: 2020-01-27 19:31 | IP: IP Logged

What does #$6400 means in your language?
This isn't preprocessor. Is it number or string or label?

Just now I have this:
image
But it isn't ideal

Edited 2 time(s). Last edit at 2020-01-27 19:36 by pspad.

Options: Reply | Quote | Up ^


#15 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: Armagon | Date: 2020-01-27 19:38 | IP: IP Logged

Number, but to clarify it means "Hexadecimal Number(Value)". Idk if the language even uses normal numbers at all.

Options: Reply | Quote | Up ^


#16 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: pspad | Date: 2020-01-27 19:45 | IP: IP Logged

Armagon:
Number, but to clarify it means "Hexadecimal Number(Value)". Idk if the language even uses normal numbers at all.

I am afraid I don't understand. Can you tell me difference between $nnnn and #$nnnn ?

Options: Reply | Quote | Up ^


#17 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: Armagon | Date: 2020-01-27 19:45 | IP: IP Logged

That's really close how can I apply that?

Options: Reply | Quote | Up ^


#18 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: Armagon | Date: 2020-01-27 19:49 | IP: IP Logged

$n.. = hexadecimal number(location within code), #$n.. = hexadecimal number(value).
One says "where to look" other says "this is a value".

Options: Reply | Quote | Up ^


#19 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: pspad | Date: 2020-01-27 19:49 | IP: IP Logged

Armagon:
That's really close how can I apply that?

In the next version. But if you clarify me the difference, I can make modification.
The rest behind the #$ is displayed with number color.

Options: Reply | Quote | Up ^


#20 Re: Feature Request: Hexadecimal Option in User Highlighters.

Posted by: pspad | Date: 2020-01-27 19:50 | IP: IP Logged

Armagon:
$n.. = hexadecimal number(location within code), #$n.. = hexadecimal number(value).
One says "where to look" other says "this is a value".

Do you mean $nnn is address and #$nnn is hexadecimal value?

Options: Reply | Quote | Up ^


Goto Page: Previous1 2 3 Next





Editor PSPad - freeware editor, © 2001 - 2020 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR