I'd like to be able to highlight entire lines in notepad++ by keywords, but these keywords would be added in the end of each line.

I tried with the available mechanism of "User Defined Language" styling but there is no chance of using regular expressions to match those lines.

So the question would be how to achieve this with the available options in Notepad++ or with a 3rd party plugin.

Example of line is needed to highlight:

  • Task about doing something for someone => DONE

I would need the whole line to be highlighted permanently (as long as the style is applied to the document) according to the keyword "DONE". I would also like the solution to be capable of highlight styles for different keywords (IN_PROGRESS, CANCELLED, etc)

Thanks in Advance

  • I came here for searching how to improve the code highlighting. Did you find a solution? – Miroslav Popov Sep 21 '17 at 5:03

I cannot help you with highlighting different lines in different colors at the same time, but finding those lines is, in fact, very easy. Open the find window, select at the bottom "Regular expressions" and type into the search field ^.*keyword. Replace keyword with the word you need found. Then press find next, or find all to highlight all the occurences. It will select the whole line, as long as the keyword is at the end. If not, if will select everything from the beginning of the line up to the keyword, including.


  • ^ Start at the beginning of the line,
  • . match any character...
  • * ... any number of times,
  • until you reach keyword.

If there is no keyword on that line, it will be skipped.

  • I appreciate the idea @KardNails, but it is not what I am looking for – j4nSolo Mar 31 '14 at 6:54

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.