Skip to content

xquintana/LineHighlighter

Repository files navigation

Line Highlighter

Line Highlighter is a Notepad++ plugin that highlights lines using different background colors depending on the line content.

Report

For example, it can help read log files by colorizing lines with specific keywords or values.

This plugin replicates the highlighting feature of DebugView

Usage

Under Plugins > Line Highlighter there are two commands:

  • Toggle Highlight. Enables or disables the highlighter for the current document.
  • Highlight Filter. Shows a dialog to configure the filters of the highlighter. There are up to 10 filters available.

Each filter has two parameters:

  • The text a line must contain in order to be highlighted. Filters are case-sensitive. Multiple strings can be specified by separating them with a semicolon (';')
  • The background color of the line.

It is recommended to map a shortcut to the Toggle Highlight command.

Please note:

  • When the highlighter is enabled, only the current document is processed.
  • If the document is modified, the highlighter does not update automatically: it must be reapplied.
  • The highlighter is disabled by default when Notepad++ is started.

Installation

Step 1: Open Notepad++ and select Plugins > Open Plugins Folder...

Step 2: In the plugins folder, create a folder named LineHighlighter.

Step 3: Download the ZIP file according to your Notepad++ platform:

Step 4: Unzip and copy the DLL into the folder LineHighlighter.

Step 5: Restart Notepad++.

License

Licensed under the GNU General Public License v2.0 - see the LICENSE file for details.

This project is based on the plugin template by Don HO, with the following changes:

  • Added a function that modifies the background of a whole line if it contains certain substrings (EnableHighlight) and a command handler that invokes that function (OnToggleHighlight)
  • Added classes to hold and manage the substrings used to highlight the lines (HighlightFilter/FilterManager)
  • Added a dialog to edit the highlight filters (HighlightDlg)
  • Added a command handler that shows this dialog (ShowConfigDlg)
  • Changed the location of the output files.

About

Notepad++ plugin that highlights lines with different background colors depending on line content.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published