Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9020747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:05:50+00:00 2026-06-16T05:05:50+00:00

I have a user defined language for Notepad++. There is an issue with numbers.

  • 0

I have a user defined language for Notepad++. There is an issue with numbers. I have numbers set to highlight as 0xFF0000 (bright red). This works great for numbers like 5, 844, 108293. The problem lies with hex numbers like 0x50, 0x83, etc. In the case of the hex numbers, the 0 shows correctly highlighted, then the x50 will show up as default color.

I know this can be set correctly to highlight the entire 0x50 as if I switch to C++, the numbers are highlighted properly.

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:05:51+00:00Added an answer on June 16, 2026 at 5:05 am

    In Notepad++ 6.2.2 you can define style for hexadecimal numbers as shown below in the UDF dialog:

    enter image description here

    However, one caveat I’ve found which is true for a lot of the options in the UDF lexer is that except numbers at the end of a line, a space following the number is required for the lexer to determine it’s a number.

    So for example, the 0xFF and 0x00 will be treated as numbers, while 0x9F will not:

    white = 0xFF
    black = 0x00
    SetColor(i, x, r.Min.Y, 0x9F)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was about to create a user-defined language file for Notepad++ to syntax-highlight IDL
I have this user defined function. public partial class UserDefinedFunctions { static int i;
I have a script which creates a user-defined object like this: obj = new
I have an user defined table function in SQL Server that aggregate data from
I have a user-defined table type. I want to check it's existence before editing
I have a User Defined Function (UDF) written in Java to parse lines in
Suppose I have a user defined type: CREATE OR REPLACE TYPE TEST_TYPE AS OBJECT
Most systems will have a user-defined function (UDF) available. Some will not. i want
I have a class that defined a user defined operator for a TCHAR*, like
I have a stored procedure which accepts a User defined table type called SeasonTable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.