notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

NotAnIssue, Keyword highlighting, partial match

Open
#10,366 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Description of the Issue

In example I use NPP to check extensive log files, and often it gets job done, when necessary to find error messages in such files.
My question will be - Is there a way to partialy match certain keywords and color them?
Maybe there is an option to use wildcards, to extend highlighting funtionality.

Steps to Reproduce the Issue
  1. Navigate to URL settings.
  2. Add "Exception" keyword to one one groups.
  3. Check Prefix mode.
Expected Behavior

Keywords like: java.io.FileNotFoundException, com.btr.proxy.util.ProxyException will get their color, which matches with "Exception" rule from UDL settings.

  • MATCH - java.io.FileNotFoundException
  • MATCH - com.btr.proxy.util.ProxyException
  • MATCH - Exception error: ...
Actual Behavior

Only exactly matching words are being marked, skipping ones which contains "Exception" text, while these starts with something else.

  • SKIPPED - java.io.FileNotFoundException
  • SKIPPED - com.btr.proxy.util.ProxyException
  • MATCH - Exception error: ...

NPP v7.9.3 x64.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue identifies UDL settings and Prefix mode, but names no source file or test. Start by locating the keyword-highlighting implementation and its tests, then determine how partial matches should interact with prefixes. Done means terms containing “Exception,” including the listed Java class names, receive the configured color without changing exact-match behavior unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.