2015-11-01 21:32:05 · Author: Wudi · Tagged with:
Computer Software,
C/C++,
Hack |
Comments
During the National Day holiday, I searched for a alternative text editor and intend to use Notepad++. But when I start using it, I found its syntax highlighting feature is a bit weak.
From
this article, I knew that the Scintilla editor component using by Notepad++ uses hard-coded method to deal with syntax highlighting. To add a new type of highlighting keywords, you need to modify the C++ source code. As for the problem that keywords and function names are mixed together for PHP, it has been there for 9 years.
I could have put it away and looking for commercial softwares. But I felt the well-known Sublime Text is not good as well after trying it out. So I came back to consider modifying the source code of Notepad++. Through
the modification on Oct 5, I had figured it out and commited it to the repository I forked on github:
https://github.com/wudicgi/npp-customizedToday, I
merged the code of v6.8.6 to my enhanced branchThis is the PHP syntax highlighting result in original edition:

And below is my enhanced version:

Now, in the Style Configurator, you can specify the PHP keywords (WORD) and function names (FUNCTION) to different colors:
